From aaa650e18b374d91a20aaf670d307be6cec0d6fb Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Wed, 26 Feb 2020 11:39:49 +0100 Subject: [PATCH] mention unknown ID codes in their text --- MultiClient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MultiClient.py b/MultiClient.py index 38ade7d8..15f7afda 100644 --- a/MultiClient.py +++ b/MultiClient.py @@ -803,10 +803,10 @@ async def console_loop(ctx : Context): await snes_flush_writes(ctx) def get_item_name_from_id(code): - return Items.lookup_id_to_name.get(code, 'Unknown item') + return Items.lookup_id_to_name.get(code, f'Unknown item (ID:{code})') def get_location_name_from_address(address): - return Regions.lookup_id_to_name.get(address, 'Unknown location') + return Regions.lookup_id_to_name.get(address, f'Unknown location (ID:{address})') async def track_locations(ctx : Context, roomid, roomdata): new_locations = []