Logging reduziert.
This commit is contained in:
1
World.py
1
World.py
@@ -248,5 +248,4 @@ class World:
|
|||||||
parser = WorldParser.WorldParser(self)
|
parser = WorldParser.WorldParser(self)
|
||||||
parser.parseWorld('world.xml')
|
parser.parseWorld('world.xml')
|
||||||
|
|
||||||
self.debug_Items()
|
|
||||||
|
|
||||||
|
@@ -100,10 +100,9 @@ class WorldParser():
|
|||||||
gegenstand.sichtbar = visible.lower() not in ['false','False','0']
|
gegenstand.sichtbar = visible.lower() not in ['false','False','0']
|
||||||
#logging.debug('Gegenstand ' + gegenstand.name + ' ist sichtbar: ' + str(gegenstand.sichtbar))
|
#logging.debug('Gegenstand ' + gegenstand.name + ' ist sichtbar: ' + str(gegenstand.sichtbar))
|
||||||
gegenstand.pickupmsg = msgid
|
gegenstand.pickupmsg = msgid
|
||||||
logging.debug('Item ' + gegenstand.name + ' - Pickup: ' + gegenstand.pickupmsg)
|
# logging.debug('Item ' + gegenstand.name + ' - Pickup: ' + gegenstand.pickupmsg)
|
||||||
|
|
||||||
raum.items[id] = gegenstand
|
raum.items[id] = gegenstand
|
||||||
logging.debug(f'Hinzufügen Gegenstand vom Typ: {str(type(gegenstand))}')
|
|
||||||
self.world.gegenstaende[id] = gegenstand
|
self.world.gegenstaende[id] = gegenstand
|
||||||
else:
|
else:
|
||||||
if raum != '-1':
|
if raum != '-1':
|
||||||
|
4
tomb.py
4
tomb.py
@@ -90,7 +90,7 @@ def inputLoop(stdscr):
|
|||||||
logging.debug(f'debugcommand: {debugcommand}')
|
logging.debug(f'debugcommand: {debugcommand}')
|
||||||
|
|
||||||
if debugcommand[1] == 'items':
|
if debugcommand[1] == 'items':
|
||||||
world.debug_Items()
|
debug_Items()
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
@@ -106,7 +106,7 @@ def debug_Items():
|
|||||||
count = 0
|
count = 0
|
||||||
for item in world.gegenstaende:
|
for item in world.gegenstaende:
|
||||||
logging.debug(f'count= {count}')
|
logging.debug(f'count= {count}')
|
||||||
logging.debug('Itemtyp: ' + str(type(item)))
|
logging.debug(f'Itemtyp: ' + {item})
|
||||||
# logging.debug(f'Item-IdId:{item.id} - Item-Name:{item.name}')
|
# logging.debug(f'Item-IdId:{item.id} - Item-Name:{item.name}')
|
||||||
count = count +1
|
count = count +1
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user