Die Kabine bewegt sich mit dem Boot mit.
Raum Boot2 ist erreichbar.
This commit is contained in:
@@ -205,6 +205,10 @@ class ActionModul(ActionBasics):
|
||||
def leere(self, parsedCommand):
|
||||
item = self.world.findItemImInventar(parsedCommand.gegenstand)
|
||||
|
||||
if item == None:
|
||||
self.setFehler('Das trägst du nicht bei dir.')
|
||||
return
|
||||
|
||||
if item.id == self.world.ITEM_KRUG:
|
||||
if self.isAktuellerRaum(self.world.RAUM_BRACHLAND):
|
||||
if item.zustand == item.VOLL:
|
||||
@@ -468,11 +472,19 @@ class ActionModul(ActionBasics):
|
||||
if item == None:
|
||||
self.setFehler('Das gibts hier nicht.')
|
||||
return
|
||||
logging.debug(f'ItemId: {item.id}')
|
||||
if self.isItemAndAktRaum(item, self.world.ITEM_LEITER, self.world.RAUM_ESSZIMMER):
|
||||
self.rauf()
|
||||
elif self.isItemAndAktRaum(item, self.world.ITEM_BOOT, self.world.RAUM_HAFEN):
|
||||
boot = self.world.sucheRaum(self.world.RAUM_BOOT)
|
||||
self.wechsleRaum(boot)
|
||||
elif self.isItem(item,self.world.ITEM_KABINE):
|
||||
logging.debug(f'gehe in Kabine')
|
||||
raumid = self.world.aktuellerRaum.id
|
||||
kabine = self.world.sucheRaum(self.world.RAUM_KABINE)
|
||||
kabine.ausgaenge[self.world.RAUF] = raumid
|
||||
self.wechsleRaum(kabine)
|
||||
|
||||
else:
|
||||
self.setFehler('Das gibt\'s hier nicht.')
|
||||
|
||||
|
Reference in New Issue
Block a user