Endgame
This commit is contained in:
@@ -123,11 +123,11 @@ class ActionModul(ActionBasics):
|
||||
if item.id ==self.world.ITEM_JACKE:
|
||||
self.setFehler('Also du die Jacke anziehst, findest du einen kleine Schlüssel in der Tasche.')
|
||||
self.findeTruhenschluessel()
|
||||
elif item.id == self.world.ITEM_LEITER:
|
||||
elif self.isItem(item,self.world.ITEM_LEITER):
|
||||
if(self.world.aktuellerRaum.id == self.world.RAUM_ESSZIMMER):
|
||||
logging.debug(f'aktuellerRaum ist {self.world.aktuellerRaum.id}')
|
||||
self.rauf()
|
||||
elif item.id == self.world.ITEM_PLANKE:
|
||||
elif self.isItem(item,self.world.ITEM_PLANKE):
|
||||
if self.isAktuellerRaum(self.world.RAUM_BACH):
|
||||
self.baueBruecke()
|
||||
self.setFehler('Du legst die Planke über den Bach und es ensteht eine Brücke.')
|
||||
@@ -136,6 +136,12 @@ class ActionModul(ActionBasics):
|
||||
elif self.isItem(item, self.world.ITEM_SCHWIMMWESTE):
|
||||
item.zustand = item.ANGEZOGEN
|
||||
self.setFehler('Du ziehst die Schwimmweste an.')
|
||||
elif self.isItem(item,self.world.ITEM_DIAMANT):
|
||||
if self.isAktuellerRaum(self.world.RAUM_MAUER):
|
||||
self.world.printText('graböffnung')
|
||||
self.world.aktuellerRaum.ausgaenge[self.world.SUED] = self.world.RAUM_GRAB
|
||||
else:
|
||||
self.setFehler('Nichts passiert.')
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user