[OC2] Only Calculate Priority Locations Once (#1662)

This commit is contained in:
toasterparty
2023-04-03 21:53:05 -07:00
committed by GitHub
parent cbf72becc1
commit eb503adb13

View File

@@ -249,8 +249,9 @@ class Overcooked2World(World):
self.level_mapping = None
def set_location_priority(self) -> None:
priority_locations = self.get_priority_locations()
for level in Overcooked2Level():
if level.level_id in self.get_priority_locations():
if level.level_id in priority_locations:
location: Location = self.multiworld.get_location(level.location_name_item, self.player)
location.progress_type = LocationProgressType.PRIORITY