faster location function

This commit is contained in:
spinerak
2024-06-10 18:28:09 +02:00
parent 5bb2883054
commit 06f105ea57

View File

@@ -23,10 +23,7 @@ starting_index = 16871244500 # 500 more than the starting index for items
# Function that is called when this file is loaded, which loads in ALL possible locations, score 1 to 1000
def all_locations_fun(max_score):
location_table = {}
for i in range(max_score + 1):
location_table[f"{i} score"] = LocData(starting_index + i, "Board", i)
return location_table
return {f"{i} score": LocData(starting_index + i, "Board", i) for i in range(max_score + 1)}
# function that loads in all locations necessary for the game, so based on options.