[OC2] Only Calculate Priority Locations Once ()

This commit is contained in:
toasterparty 2023-04-03 21:53:05 -07:00 committed by GitHub
parent cbf72becc1
commit eb503adb13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
worlds/overcooked2

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