uto: bis zur Klippe.
This commit is contained in:
@@ -415,9 +415,10 @@ class ActionModul(ActionBasics):
|
||||
|
||||
|
||||
def nimm(self,parsedCommand):
|
||||
logging.debug(f'start nimm() {parsedCommand.gegenstand}')
|
||||
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
||||
|
||||
logging.debug(f'nimm(): item == {item}')
|
||||
logging.debug(f'nimm(): item == {item.name}')
|
||||
if item != None:
|
||||
if item.imobil:
|
||||
text = self.world.msg[item.pickupmsg]
|
||||
@@ -459,9 +460,10 @@ class ActionModul(ActionBasics):
|
||||
|
||||
|
||||
def spring(self,parsedCommand):
|
||||
if self.isRaum(self.world.RAUM_KLIPPE):
|
||||
if self.isAktuellerRaum(self.world.RAUM_KLIPPE):
|
||||
weste = self.world.findItemImInventarById(self.world.ITEM_SCHWIMMWESTE)
|
||||
|
||||
logging.debug(f'weste={weste.zustand}')
|
||||
if weste != None and weste.zustand == weste.ANGEZOGEN:
|
||||
imwasser = self.world.findRaumById(self.world.RAUM_WASSER)
|
||||
|
||||
@@ -565,11 +567,14 @@ class ActionModul(ActionBasics):
|
||||
|
||||
|
||||
def entzuende(self,parsedCommand):
|
||||
logging.debug(f'entzünde {parsedCommand.gegenstand}')
|
||||
item = self.world.findItemImInventar(parsedCommand.gegenstand)
|
||||
|
||||
if item == None:
|
||||
self.setFehler('Das besitzt du nicht.')
|
||||
return
|
||||
|
||||
logging.debug(f'item={item}')
|
||||
if self.isItem(item, self.world.ITEM_FACKEL):
|
||||
self.toggleFackel(item)
|
||||
|
||||
|
Reference in New Issue
Block a user