Stier läuft der Jacke hinterher.

This commit is contained in:
Olli Graf
2022-05-28 16:01:58 +02:00
parent 33ee761f32
commit c634711b57
7 changed files with 122 additions and 12 deletions

12
tomb.py
View File

@@ -111,6 +111,8 @@ def inputLoop(stdscr):
debug_Items()
elif debugcommand[1] == 'inventar':
debug_Inventar()
elif debugcommand[1] == 'personen':
debug_Personen()
elif command.startswith('auto:'):
command = command.rstrip()
if command.startswith('auto:'):
@@ -129,6 +131,8 @@ def inputLoop(stdscr):
testmodul.testTal()
elif debugcommand[1] =='baumhaus':
testmodul.testBaumhaus()
elif debugcommand[1] == 'stier':
testmodul.testStier()
world.fehler = ''
@@ -140,6 +144,14 @@ def inputLoop(stdscr):
verarbeiteBefehl(parsedCommand)
actionmodul.raumaction()
def debug_Personen():
logging.debug('Personen im aktuellen Raum')
for pid in world.aktuellerRaum.personen:
person = world.personen[pid]
logging.debug(f'Id: {person.id} - Name: {person.name}')
def debug_Items():
logging.debug('liste Items')
logging.debug(world.gegenstaende)