Schlüssel im Keller ist mitnehmbar.

This commit is contained in:
Olli Graf
2022-01-21 07:33:07 +01:00
parent d971acfd83
commit a496f98199
2 changed files with 5 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ class ActionModul:
def setFehler(self,text): def setFehler(self,text):
self.world.fehler =text self.world.fehler =text
def clearFehler(self):
self.world.fehler = ''
def stelle(self,parsedCommand): def stelle(self,parsedCommand):
item = self.world.findItemImInventar(parsedCommand.gegenstand); item = self.world.findItemImInventar(parsedCommand.gegenstand);
@@ -60,6 +63,7 @@ class ActionModul:
if raum.id == '5': if raum.id == '5':
#Schlüssel im Keller sichtbar machen #Schlüssel im Keller sichtbar machen
logging.debug('mache Schlüssel sichtbar') logging.debug('mache Schlüssel sichtbar')
self.setFehler('Auf dem Boden findest du einen kleinen Schlüssel.')
schluessel = self.world.findRaumItemById('9') schluessel = self.world.findRaumItemById('9')
schluessel.sichtbar = True schluessel.sichtbar = True

View File

@@ -104,7 +104,7 @@
<item name='Glas' id='6' raum='3' imobil='false' msgid='3' visible='false' /> <item name='Glas' id='6' raum='3' imobil='false' msgid='3' visible='false' />
<item name='Bett' id='7' raum='4' imobil='true' msgid='1' visible=' true' /> <item name='Bett' id='7' raum='4' imobil='true' msgid='1' visible=' true' />
<item name='Nachtschrank' id='8' raum='4' imobil='true' msgid='1' visible=' true' /> <item name='Nachtschrank' id='8' raum='4' imobil='true' msgid='1' visible=' true' />
<item name='kleiner Schlüssel' id='9' raum='5' imobil='false' msgid='1' visible='false' /> <item name='Schlüssel' id='9' raum='5' imobil='false' msgid='1' visible='false' />
</items> </items>
<personen> <personen>