benutze/klettere Leiter
findItemById() iteriert jetzt richtig übers Dictionary
This commit is contained in:
@@ -100,13 +100,15 @@ class WorldParser():
|
||||
gegenstand.sichtbar = visible.lower() not in ['false','False','0']
|
||||
#logging.debug('Gegenstand ' + gegenstand.name + ' ist sichtbar: ' + str(gegenstand.sichtbar))
|
||||
gegenstand.pickupmsg = msgid
|
||||
print('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:
|
||||
logging.error(f'Kann Raum für Gegenstand {gegenstand.name} nicht finden')
|
||||
print(f'Kein Raum für {gegenstand.name}')
|
||||
if raum != '-1':
|
||||
logging.error(f'Kann Raum für Gegenstand {gegenstand.name} nicht finden')
|
||||
logging.error(f'Kein Raum für {gegenstand.name}')
|
||||
|
||||
# Personen
|
||||
for item in root.findall('personen/person'):
|
||||
|
Reference in New Issue
Block a user