Wiederaufnehmen der Planke versperrt den Weg über den Bach.
This commit is contained in:
@@ -69,9 +69,17 @@ class ActionModul:
|
||||
item = self.world.findItemImInventar(parsedCommand.gegenstand);
|
||||
|
||||
|
||||
logging.debug(f'verliere Item {item}')
|
||||
if item != None:
|
||||
del self.world.inventar[item.id]
|
||||
|
||||
if self.world.aktuellerRaum.id == self.world.RAUM_BACH:
|
||||
if item.id == self.world.ITEM_PLANKE:
|
||||
self.world.aktuellerRaum.ausgaenge[self.world.SUED] = self.world.RAUM_TEICH
|
||||
self.setFehler('Du legst die Planke über den Bach und es ensteht eine Brücke über den Bach')
|
||||
|
||||
self.world.aktuellerRaum.items[item.id] = item
|
||||
item.raumid = self.world.aktuellerRaum.id
|
||||
else:
|
||||
self.setFehler("Diesen Gegenstand besitzt du nicht.")
|
||||
|
||||
@@ -147,6 +155,7 @@ class ActionModul:
|
||||
def nimm(self,parsedCommand):
|
||||
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
||||
|
||||
logging.debug(f'nimm: item == {item}')
|
||||
if item != None:
|
||||
if item.imobil:
|
||||
text = self.world.msg[item.pickupmsg]
|
||||
@@ -159,6 +168,15 @@ class ActionModul:
|
||||
else:
|
||||
del self.world.aktuellerRaum.items[item.id]
|
||||
self.world.inventar[item.id] = item
|
||||
|
||||
logging.debug(f'nimm: RaumId== {self.world.aktuellerRaum.id}')
|
||||
if self.world.aktuellerRaum.id == self.world.RAUM_BACH:
|
||||
logging.debug(f'nimm: ItemId == {item.id}')
|
||||
if item.id == self.world.ITEM_PLANKE:
|
||||
logging.debug('nehme Planke am Bach')
|
||||
self.world.aktuellerRaum.ausgaenge[self.world.SUED] = '-1'
|
||||
|
||||
|
||||
else:
|
||||
self.setFehler("diesen Gegenstand sehe ich hier nicht.")
|
||||
|
||||
|
Reference in New Issue
Block a user