uto: bis zur Klippe.

This commit is contained in:
Olli Graf
2022-06-11 14:08:42 +02:00
parent 3b848ffb80
commit 0ff17aac13
7 changed files with 48 additions and 6 deletions

View File

@@ -169,6 +169,7 @@ class World:
return raum
return None
def sucheRaumName(self,name):
if name == None:
return self.aktuellerRaum
@@ -214,6 +215,7 @@ class World:
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():
logging.debug(f'return {item.name}')
return item
logging.debug(f'Item {itemname} nicht im aktuellen Raum gefunden')