From a17b7e1cbfb43141af21263f838f9593836a9c52 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 14 Aug 2025 12:30:12 -0400 Subject: Fixed some issues with door logic If a door is shuffled, the door's item should be used in connections and in requirements specified by panels, ports, paintings, and other doors. However, the original requirements still need to be used for locations. --- apworld/regions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apworld/regions.py') diff --git a/apworld/regions.py b/apworld/regions.py index 2a850ef..14fcaac 100644 --- a/apworld/regions.py +++ b/apworld/regions.py @@ -41,7 +41,7 @@ def create_regions(world: "Lingo2World"): reqs = AccessRequirements() if connection.HasField("required_door"): - reqs.merge(world.player_logic.get_door_reqs(connection.required_door)) + reqs.merge(world.player_logic.get_door_open_reqs(connection.required_door)) door = world.static_logic.objects.doors[connection.required_door] wmap = world.static_logic.objects.maps[door.map_id] @@ -52,14 +52,14 @@ def create_regions(world: "Lingo2World"): connection_name = f"{connection_name} (via port {port.name})" if port.HasField("required_door"): - reqs.merge(world.player_logic.get_door_reqs(port.required_door)) + reqs.merge(world.player_logic.get_door_open_reqs(port.required_door)) if connection.HasField("painting"): painting = world.static_logic.objects.paintings[connection.painting] connection_name = f"{connection_name} (via painting {painting.name})" if painting.HasField("required_door"): - reqs.merge(world.player_logic.get_door_reqs(painting.required_door)) + reqs.merge(world.player_logic.get_door_open_reqs(painting.required_door)) if connection.HasField("panel"): proxy = connection.panel -- cgit 1.4.1