Öffnen der Truhe enthüllt jetzt Seil und Schwert.

This commit is contained in:
Olli Graf
2022-05-13 11:42:13 +02:00
parent 9230a418ae
commit 85d36993c1
4 changed files with 18 additions and 15 deletions

View File

@@ -94,21 +94,22 @@ class WorldParser():
raum = self.world.sucheRaum(raumid)
if raum is not None:
gegenstand.raum = raum.id
gegenstand.adjektiv = adjektiv
gegenstand.imobil = imobil.lower() in ['true','True','1']
logging.debug('itemid= ' + id + ',visible= ' + visible)
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)
raum.items[id] = gegenstand
self.world.gegenstaende[id] = gegenstand
else:
if raum != '-1':
if raumid != '-1':
logging.error(f'Kann Raum für Gegenstand {gegenstand.name} nicht finden')
logging.error(f'Kein Raum für {gegenstand.name}')
gegenstand.adjektiv = adjektiv
gegenstand.imobil = imobil.lower() in ['true','True','1']
logging.debug('itemid= ' + id + ',visible= ' + visible)
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)
self.world.gegenstaende[id] = gegenstand
# Personen
for item in root.findall('personen/person'):
name = item.attrib['name']