None abgefangen.
This commit is contained in:
@@ -218,6 +218,10 @@ class ActionModul(ActionBasics):
|
|||||||
def schlage(self, parsedCommand):
|
def schlage(self, parsedCommand):
|
||||||
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
||||||
|
|
||||||
|
if item == None:
|
||||||
|
self.setFehler('Das sehe ich hier nicht.')
|
||||||
|
return
|
||||||
|
|
||||||
if item.id == self.world.ITEM_BOXSACK:
|
if item.id == self.world.ITEM_BOXSACK:
|
||||||
self.setFehler('Der Boxsack sagt: Hmm, hmm?')
|
self.setFehler('Der Boxsack sagt: Hmm, hmm?')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user