Schwimmweste anziehen.
This commit is contained in:
@@ -133,6 +133,10 @@ class ActionModul(ActionBasics):
|
||||
self.setFehler('Du legst die Planke über den Bach und es ensteht eine Brücke.')
|
||||
else:
|
||||
self.setFehler('Das macht hier keinen Sinn.')
|
||||
elif self.isItem(item, self.world.ITEM_SCHWIMMWESTE):
|
||||
item.zustand = item.ANGEZOGEN
|
||||
self.setFehler('Du ziehst die Schwimmweste an.')
|
||||
|
||||
|
||||
|
||||
def baueBruecke(self):
|
||||
@@ -454,6 +458,18 @@ class ActionModul(ActionBasics):
|
||||
|
||||
|
||||
|
||||
def spring(self,parsedCommand):
|
||||
if self.isRaum(self.world.RAUM_KLIPPE):
|
||||
weste = self.world.findItemImInventarById(self.world.ITEM_SCHWIMMWESTE)
|
||||
|
||||
if weste != None and weste.zustand == weste.ANGEZOGEN:
|
||||
imwasser = self.world.findRaumById(self.world.RAUM_WASSER)
|
||||
|
||||
self.wechsleRaum(imwasser)
|
||||
else:
|
||||
self.setFehler('Das Wasser ist viel zu tief, du würdest ertrinken.')
|
||||
|
||||
|
||||
def sprich(self,parsedCommand):
|
||||
person = self.world.findPersonImAktuellenRaum(parsedCommand.gegenstand)
|
||||
|
||||
|
Reference in New Issue
Block a user