mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-23 11:03:20 -07:00
faster location function
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user