Diamant und Sockel werden sichtbar.

This commit is contained in:
Olli Graf
2022-06-13 14:59:55 +02:00
parent 7bd3ecaba0
commit ebdf22f6a6
5 changed files with 44 additions and 8 deletions

View File

@@ -277,6 +277,7 @@ class ActionModul(ActionBasics):
return
if item != None:
logging.debug(f'item.id = {item.id}')
if item.id == self.world.ITEM_PFLANZE:
krug = self.world.findRaumItemById(self.world.ITEM_KRUG)
logging.debug(f'mache Gegenstand {krug.name} sichtbar')
@@ -309,12 +310,15 @@ class ActionModul(ActionBasics):
elif self.isItem(item,self.world.ITEM_KARTE):
self.world.printKarte()
elif self.isItem(item, self.world.ITEM_KOPF):
self.zeigeItemBeschreibung(item)
diamant = self.world.findItemById(self.world.ITEM_DIAMANT)
self.macheItemSichtbar(diamant)
self.zeigeItemBeschreibung(item)
diamant = self.world.findItemById(self.world.ITEM_DIAMANT)
self.macheItemSichtbar(diamant)
elif self.isItem(item, self.world.ITEM_MAUER):
self.setFehler('In der Mauer wird ein Sockel sichtbar.')
sockel = self.world.findItemById(self.world.ITEM_SOCKEL)
self.macheItemSichtbar(sockel)
else:
self.zeigeItemBeschreibung(item)