Remove lookup_id_to_name entirely

I for sure don't use it, and as far as I know it's not one of the mandatory functions for AP, these are item_name_to_id and location_name_to_id.
This commit is contained in:
spinerak
2024-06-11 19:14:05 +02:00
parent 0aa2b31ca4
commit 36265257a1

View File

@@ -69,8 +69,5 @@ def ini_locations(goal_score, max_score, number_of_locations, dif):
return location_table, scores.index(goal_score)
lookup_id_to_name: typing.Dict[int, str] = {data.id: item_name for item_name, data in all_locations.items() if data.id}
# we need to run this function to initialize all scores from 1 to 1000, even though not all are used
all_locations = all_locations_fun(1000)
all_locations = all_locations_fun(1000)