Boot ist erreichbar.

This commit is contained in:
Olli Graf
2022-06-05 11:41:24 +02:00
parent b29774ec31
commit 8870050345
5 changed files with 60 additions and 17 deletions

View File

@@ -44,6 +44,10 @@ class ActionModul(ActionBasics):
def vanishItem(self, item):
if item == None:
return
item.sichtbar = False
self.ausDemInventar(item)
@@ -112,7 +116,10 @@ class ActionModul(ActionBasics):
def benutze(self, parsedCommand):
item = self.world.findItemImInventarOderAktuellerRaum(parsedCommand.gegenstand);
if item == None:
self.setFehler('Das sehe ich hier nicht.')
return
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()
@@ -455,7 +462,7 @@ class ActionModul(ActionBasics):
else:
self.world.printText('hilfe')
def geheNachItem(parsedCommand):
def geheNachItem(self,parsedCommand):
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
if item == None:
@@ -463,6 +470,9 @@ class ActionModul(ActionBasics):
return
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)
else:
self.setFehler('Das gibt\'s hier nicht.')