Klettern am Rankgitter.
Planke
This commit is contained in:
@@ -24,6 +24,16 @@ class ActionModul:
|
||||
self.world.stdscr.addstr(zeile,0,item.name)
|
||||
zeile = zeile +1
|
||||
|
||||
def klettere(self, parsedCommand):
|
||||
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
||||
|
||||
if item != None:
|
||||
if item.id == self.world.ITEM_RANKGITTER:
|
||||
self.rauf()
|
||||
else:
|
||||
self.setFehler('Das sehe ich hier nicht.')
|
||||
|
||||
|
||||
def oeffne(self,parsedCommand):
|
||||
item = self.world.findItemImInventarOderAktuellerRaum(parsedCommand.gegenstand);
|
||||
|
||||
@@ -125,7 +135,7 @@ class ActionModul:
|
||||
self.untersucheAktuellenRaum(parsedCommand)
|
||||
|
||||
def ziehe(self,parsedCommand):
|
||||
item = self.world.findIteminAktuellerRaum(parsedCommand.gegenstand)
|
||||
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
||||
|
||||
if item != None:
|
||||
#alter Code!
|
||||
@@ -135,7 +145,7 @@ class ActionModul:
|
||||
self.setFehler('Das sehe ich hier nicht.')
|
||||
|
||||
def nimm(self,parsedCommand):
|
||||
item = self.world.findIteminAktuellerRaum(parsedCommand.gegenstand)
|
||||
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
||||
|
||||
if item != None:
|
||||
if item.imobil:
|
||||
|
Reference in New Issue
Block a user