rename get_location_name_from_address to get_location_name_from_id

This commit is contained in:
Fabian Dill
2021-04-28 15:48:11 +02:00
parent 5087b78c28
commit 60f64cc46b
2 changed files with 8 additions and 8 deletions

View File

@@ -272,14 +272,14 @@ def get_options() -> dict:
return get_options.options
def get_item_name_from_id(code):
def get_item_name_from_id(code: int) -> str:
from worlds import lookup_any_item_id_to_name
return lookup_any_item_id_to_name.get(code, f'Unknown item (ID:{code})')
def get_location_name_from_address(address):
def get_location_name_from_id(code: int) -> str:
from worlds import lookup_any_location_id_to_name
return lookup_any_location_id_to_name.get(address, f'Unknown location (ID:{address})')
return lookup_any_location_id_to_name.get(code, f'Unknown location (ID:{code})')
def persistent_store(category: str, key: typing.Any, value: typing.Any):