gehe funktioniert wieder.
hilfe Kommando.
This commit is contained in:
@@ -87,7 +87,8 @@ class ActionModul:
|
||||
if self.isAktuellerRaum(self.world.RAUM_BACH):
|
||||
baueBruecke()
|
||||
self.setFehler('Du legst die Planke über den Bach und es ensteht eine Brücke über den Bach')
|
||||
|
||||
else:
|
||||
self.setFehler('Das macht hier keinen Sinn.')
|
||||
|
||||
|
||||
def baueBruecke(self):
|
||||
@@ -102,7 +103,7 @@ class ActionModul:
|
||||
if item != None:
|
||||
del self.world.inventar[item.id]
|
||||
|
||||
if self.world.aktuellerRaum.id == self.world.RAUM_BACH:
|
||||
if self.isAktuellerRaum(self.world.RAUM_BACH):
|
||||
if item.id == self.world.ITEM_PLANKE:
|
||||
baueBruecke()
|
||||
self.setFehler('Du legst die Planke über den Bach und es ensteht eine Brücke über den Bach')
|
||||
@@ -136,7 +137,7 @@ class ActionModul:
|
||||
|
||||
logging.debug(f'raumId {raum.id}')
|
||||
logging.debug(f'untersucheAktuellenRaum() {parsedCommand.gegenstand} in {self.world.aktuellerRaum.id}')
|
||||
if raum.id == self.world.aktuellerRaum.id:
|
||||
if self.isAktuellerRaum(raum.id):
|
||||
logging.debug(f'untersuche aktuellen Raum {raum.name}')
|
||||
|
||||
|
||||
@@ -205,7 +206,7 @@ class ActionModul:
|
||||
|
||||
logging.debug(f'klettere(): Leiter is {leiter}')
|
||||
if leiter != None:
|
||||
if(self.world.aktuellerRaum.id == self.world.RAUM_ESSZIMMER):
|
||||
if self.isAktuellerRaum(self.world.RAUM_ESSZIMMER):
|
||||
logging.debug(f'aktuellerRaum ist {self.world.aktuellerRaum.id}')
|
||||
self.rauf()
|
||||
else:
|
||||
@@ -237,7 +238,7 @@ class ActionModul:
|
||||
self.insInventar(item)
|
||||
|
||||
logging.debug(f'nimm: RaumId== {self.world.aktuellerRaum.id}')
|
||||
if self.world.aktuellerRaum.id == self.world.RAUM_BACH:
|
||||
if self.isAktuellerRaum(self.world.RAUM_BACH):
|
||||
logging.debug(f'nimm: ItemId == {item.id}')
|
||||
if item.id == self.world.ITEM_PLANKE:
|
||||
logging.debug('nehme Planke am Bach')
|
||||
@@ -248,6 +249,9 @@ class ActionModul:
|
||||
self.setFehler("diesen Gegenstand sehe ich hier nicht.")
|
||||
|
||||
|
||||
def hilfe(self):
|
||||
self.world.printText('hilfe')
|
||||
|
||||
def gehe(self,parsedCommand):
|
||||
richtung = parsedCommand.gegenstand.lower()
|
||||
logging.debug("gehe nach " + richtung)
|
||||
@@ -260,6 +264,9 @@ class ActionModul:
|
||||
self.west()
|
||||
if richtung == 'ost':
|
||||
self.ost()
|
||||
if richtung == 'rauf':
|
||||
self.rauf()
|
||||
|
||||
|
||||
def geheNach(self,richtung):
|
||||
logging.debug(f'geheNach() Richtung {richtung}')
|
||||
|
Reference in New Issue
Block a user