diff --git a/World.py b/World.py index 49fc0a3..38be7da 100644 --- a/World.py +++ b/World.py @@ -248,5 +248,4 @@ class World: parser = WorldParser.WorldParser(self) parser.parseWorld('world.xml') - self.debug_Items() diff --git a/WorldParser.py b/WorldParser.py index 8b6d369..be89d2f 100644 --- a/WorldParser.py +++ b/WorldParser.py @@ -100,10 +100,9 @@ class WorldParser(): gegenstand.sichtbar = visible.lower() not in ['false','False','0'] #logging.debug('Gegenstand ' + gegenstand.name + ' ist sichtbar: ' + str(gegenstand.sichtbar)) gegenstand.pickupmsg = msgid - logging.debug('Item ' + gegenstand.name + ' - Pickup: ' + gegenstand.pickupmsg) +# logging.debug('Item ' + gegenstand.name + ' - Pickup: ' + gegenstand.pickupmsg) raum.items[id] = gegenstand - logging.debug(f'Hinzufügen Gegenstand vom Typ: {str(type(gegenstand))}') self.world.gegenstaende[id] = gegenstand else: if raum != '-1': diff --git a/tomb.py b/tomb.py index 3e5bb44..062df42 100755 --- a/tomb.py +++ b/tomb.py @@ -90,7 +90,7 @@ def inputLoop(stdscr): logging.debug(f'debugcommand: {debugcommand}') if debugcommand[1] == 'items': - world.debug_Items() + debug_Items() else: @@ -106,7 +106,7 @@ def debug_Items(): count = 0 for item in world.gegenstaende: 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}') count = count +1