This commit is contained in:
Olli Graf
2022-06-13 17:56:35 +02:00
parent ebdf22f6a6
commit 8bd0897af1
5 changed files with 51 additions and 6 deletions

13
tomb.py
View File

@@ -128,6 +128,8 @@ def inputLoop(stdscr):
commandid = '0'
elif debugcommand[1] == 'weg':
logging.debug(f'gelaufener Weg: {world.weg}')
elif debugcommand[1] == 'unvisited':
debug_NonVisited()
elif command.startswith('auto:'):
command = command.rstrip()
@@ -158,6 +160,8 @@ def inputLoop(stdscr):
testmodul.testKlippe()
elif debugcommand[1] == 'statue':
testmodul.testStatue()
elif debugcommand[1] == 'mauer':
testmodul.testMauer()
world.fehler = ''
@@ -170,6 +174,15 @@ def inputLoop(stdscr):
verarbeiteBefehl(parsedCommand)
actionmodul.raumaction()
def debug_NonVisited():
logging.debug('nicht entdeckte Räume:')
for raumid in world.raumliste:
raum = world.raumliste[raumid]
if not raum.entdeckt:
logging.debug(f'{raum.id} - {raum.name}')
def debug_Personen():
logging.debug('Personen im aktuellen Raum')