Raumkonstanten.
This commit is contained in:
23
tomb.py
23
tomb.py
@@ -78,10 +78,23 @@ def inputLoop(stdscr):
|
||||
stdscr.addstr(11,0,'Was nun? ')
|
||||
command = stdscr.getstr(11,10,40).decode(encoding="utf-8")
|
||||
command = command.rstrip()
|
||||
parsedCommand = world.parseInput(command)
|
||||
commandid = parsedCommand.commandid
|
||||
verarbeiteBefehl(parsedCommand)
|
||||
schrittzaehler = schrittzaehler +1
|
||||
actionmodul.raumaction()
|
||||
if command.startswith('debug:'):
|
||||
debugcommand = command.split(':',1)
|
||||
|
||||
logging.debug(f'debugcommand: {debugcommand}')
|
||||
|
||||
if debugcommand[1] == 'items':
|
||||
logging.debug('liste Items')
|
||||
logging.debug(world.gegenstaende)
|
||||
for item in world.gegenstaende:
|
||||
logging.debug(f'Id:{item.id} - Name:{item.name}')
|
||||
|
||||
|
||||
else:
|
||||
parsedCommand = world.parseInput(command)
|
||||
commandid = parsedCommand.commandid
|
||||
verarbeiteBefehl(parsedCommand)
|
||||
schrittzaehler = schrittzaehler +1
|
||||
actionmodul.raumaction()
|
||||
|
||||
wrapper(inputLoop)
|
||||
|
Reference in New Issue
Block a user