Schtel und Krug lösen sich auf.
This commit is contained in:
@@ -107,6 +107,7 @@ class ActionModul(ActionBasics):
|
|||||||
logging.debug('Schachtel öffnen')
|
logging.debug('Schachtel öffnen')
|
||||||
item.zustand = item.OFFEN
|
item.zustand = item.OFFEN
|
||||||
self.macheItemSichtbar(karte)
|
self.macheItemSichtbar(karte)
|
||||||
|
self.vanishItem(item)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -213,6 +214,7 @@ class ActionModul(ActionBasics):
|
|||||||
if item.zustand == item.VOLL:
|
if item.zustand == item.VOLL:
|
||||||
ranke = self.world.findItemById(self.world.ITEM_BOHNENRANKE)
|
ranke = self.world.findItemById(self.world.ITEM_BOHNENRANKE)
|
||||||
fisch = self.world.findItemImInventarById(self.world.ITEM_FISCH)
|
fisch = self.world.findItemImInventarById(self.world.ITEM_FISCH)
|
||||||
|
krug = self.world.findItemImInventarById(self.world.ITEM_KRUG)
|
||||||
|
|
||||||
logging.debug(f'Fisch ist {fisch}')
|
logging.debug(f'Fisch ist {fisch}')
|
||||||
|
|
||||||
@@ -231,7 +233,8 @@ class ActionModul(ActionBasics):
|
|||||||
self.setFehler(meldung)
|
self.setFehler(meldung)
|
||||||
if ranke.zustand == ranke.GROSS:
|
if ranke.zustand == ranke.GROSS:
|
||||||
self.world.aktuellerRaum.ausgaenge[self.world.RAUF] = self.world.RAUM_BOHNENRANKE
|
self.world.aktuellerRaum.ausgaenge[self.world.RAUF] = self.world.RAUM_BOHNENRANKE
|
||||||
self.setFehler('Die Bohnenranke reicht jetzt bis in die Wolken hinein.')
|
self.setFehler('Die Bohnenranke reicht jetzt bis in die Wolken hinein.Der Krug löst sich auf')
|
||||||
|
self.vanishItem(krug)
|
||||||
else:
|
else:
|
||||||
self.setFehler('Der Krug ist leer')
|
self.setFehler('Der Krug ist leer')
|
||||||
else:
|
else:
|
||||||
@@ -528,16 +531,18 @@ class ActionModul(ActionBasics):
|
|||||||
self.macheItemSichtbar(schachtel)
|
self.macheItemSichtbar(schachtel)
|
||||||
|
|
||||||
def toggleFackel(self,item):
|
def toggleFackel(self,item):
|
||||||
weste = self.world.findItemById(self.world.ITEM_FACKEL)
|
weste = self.world.findItemById(self.world.ITEM_SCHWIMMWESTE)
|
||||||
|
|
||||||
if item.zustand == item.GELOESCHT:
|
if item.zustand == item.GELOESCHT:
|
||||||
|
|
||||||
item.zustand = item.ENTZUENDED
|
item.zustand = item.ENTZUENDED
|
||||||
weste.sichtbar = True
|
weste.sichtbar = True
|
||||||
self.setFehler('Die Fackel brennt jetzt.')
|
self.setFehler('Die Fackel brennt jetzt.')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
item.zustand = item.GELOESCHT
|
item.zustand = item.GELOESCHT
|
||||||
weste.sichtbar = False
|
if self.world.findItemImInventarById(self.world.ITEM_SCHWIMMWESTE) != None:
|
||||||
|
weste.sichtbar = False
|
||||||
self.setFehler('Du löscht die Fackel.')
|
self.setFehler('Du löscht die Fackel.')
|
||||||
|
|
||||||
|
|
||||||
|
2
tomb.py
2
tomb.py
@@ -180,7 +180,7 @@ def debug_Items():
|
|||||||
item = world.aktuellerRaum.items[itemid]
|
item = world.aktuellerRaum.items[itemid]
|
||||||
logging.debug(f'count= {count}')
|
logging.debug(f'count= {count}')
|
||||||
# logging.debug(f'Itemtyp: {type(item)}')
|
# logging.debug(f'Itemtyp: {type(item)}')
|
||||||
logging.debug(f'Item-IdId:{item.id} - Item-Name:{item.name}')
|
logging.debug(f'Item-IdId:{item.id} - Item-Name:{item.name} - sichtbar= {item.sichtbar}')
|
||||||
count = count +1
|
count = count +1
|
||||||
|
|
||||||
def debug_Inventar():
|
def debug_Inventar():
|
||||||
|
Reference in New Issue
Block a user