From eb503adb13f289a491f5b94b2cc5523f742d9994 Mon Sep 17 00:00:00 2001 From: toasterparty Date: Mon, 3 Apr 2023 21:53:05 -0700 Subject: [PATCH] [OC2] Only Calculate Priority Locations Once (#1662) --- worlds/overcooked2/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worlds/overcooked2/__init__.py b/worlds/overcooked2/__init__.py index f481b3e5..d28fc239 100644 --- a/worlds/overcooked2/__init__.py +++ b/worlds/overcooked2/__init__.py @@ -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