From a496f98199ca6bbef9adb187408c1e482c0cc76f Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Fri, 21 Jan 2022 07:33:07 +0100 Subject: [PATCH] =?UTF-8?q?Schl=C3=BCssel=20im=20Keller=20ist=20mitnehmbar?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ActionModul.py | 4 ++++ world.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ActionModul.py b/ActionModul.py index dae1c10..3bc7f8f 100644 --- a/ActionModul.py +++ b/ActionModul.py @@ -37,6 +37,9 @@ class ActionModul: def setFehler(self,text): self.world.fehler =text + def clearFehler(self): + self.world.fehler = '' + def stelle(self,parsedCommand): item = self.world.findItemImInventar(parsedCommand.gegenstand); @@ -60,6 +63,7 @@ class ActionModul: if raum.id == '5': #Schlüssel im Keller sichtbar machen logging.debug('mache Schlüssel sichtbar') + self.setFehler('Auf dem Boden findest du einen kleinen Schlüssel.') schluessel = self.world.findRaumItemById('9') schluessel.sichtbar = True diff --git a/world.xml b/world.xml index 0708397..b028567 100644 --- a/world.xml +++ b/world.xml @@ -104,7 +104,7 @@ - +