From 06f105ea578cdbd3d5e80d391e2a75bc0d5cb7e9 Mon Sep 17 00:00:00 2001 From: spinerak Date: Mon, 10 Jun 2024 18:28:09 +0200 Subject: [PATCH] faster location function --- worlds/yachtdice/Locations.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/worlds/yachtdice/Locations.py b/worlds/yachtdice/Locations.py index 2230b34082..ce24f0d39d 100644 --- a/worlds/yachtdice/Locations.py +++ b/worlds/yachtdice/Locations.py @@ -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.