Fisch, Brachland, Wiese usw.

This commit is contained in:
Olli Graf
2022-05-22 10:29:37 +02:00
parent 15132268d0
commit d67f6903c7
4 changed files with 68 additions and 23 deletions

View File

@@ -131,12 +131,13 @@ class World:
for itemid in raum.items:
item = raum.items[itemid]
logging.debug('raum.id=' + raum.id)
logging.debug('item.raumid=' + item.raumid)
logging.debug('findItemInAktuellerRaum() ' + itemname + '-' + item.name)
logging.debug(f'raum.id={raum.id}')
logging.debug(f'item.raumid={item.raumid}')
logging.debug(f'findItemInAktuellerRaum() {itemname} - {item.name}')
if item.raumid == raum.id and item.name.lower() == itemname.lower():
return item
logging.debug(f'Item {itemname} nicht im aktuellen Raum gefunden')
return None
def findRaumItemById(self,id):
@@ -290,6 +291,8 @@ class World:
self.RAUM_TEICH = '10'
self.RAUM_FELD = '11'
self.RAUM_KLEINES_FELD = '12'
self.RAUM_WIESE = '13'
self.RAUM_BRACHLAND = '14'
# Personen