about summary refs log tree commit diff stats
path: root/apworld/regions.py
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2026-01-30 10:50:01 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2026-01-30 10:50:01 -0500
commit9b5c160f60a4e6c679b0c1afca82d9a58523eaab (patch)
tree3def18df041138da0a7656efdc99008f8b13ffad /apworld/regions.py
parente9e4a7a42ca17e7dc1947b012c5f6a50047c159e (diff)
downloadlingo2-archipelago-daed-only.tar.gz
lingo2-archipelago-daed-only.tar.bz2
lingo2-archipelago-daed-only.zip
Worked on daed-only mode daed-only
Diffstat (limited to 'apworld/regions.py')
-rw-r--r--apworld/regions.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/apworld/regions.py b/apworld/regions.py index 1118603..2f9b571 100644 --- a/apworld/regions.py +++ b/apworld/regions.py
@@ -62,7 +62,7 @@ def create_regions(world: "Lingo2World"):
62 # locations. This allows us to reference the actual region objects in the access rules for the locations, which is 62 # locations. This allows us to reference the actual region objects in the access rules for the locations, which is
63 # faster than having to look them up during access checking. 63 # faster than having to look them up during access checking.
64 for room in world.static_logic.objects.rooms: 64 for room in world.static_logic.objects.rooms:
65 if room.map_id not in world.player_logic.shuffled_maps: 65 if not world.player_logic.should_shuffle_room(room.id):
66 continue 66 continue
67 67
68 region = create_region(room, world) 68 region = create_region(room, world)
@@ -72,7 +72,10 @@ def create_regions(world: "Lingo2World"):
72 for (region, room) in region_and_room: 72 for (region, room) in region_and_room:
73 create_locations(room, region, world, regions) 73 create_locations(room, region, world, regions)
74 74
75 regions["Menu"].connect(regions["The Entry - Starting Room"], "Start Game") 75 if world.options.daedalus_only:
76 regions["Menu"].connect(regions["Daedalus - Starting Room"], "Start Game")
77 else:
78 regions["Menu"].connect(regions["The Entry - Starting Room"], "Start Game")
76 79
77 for connection in world.static_logic.objects.connections: 80 for connection in world.static_logic.objects.connections:
78 if connection.roof_access and not world.options.daedalus_roof_access: 81 if connection.roof_access and not world.options.daedalus_roof_access:
@@ -160,8 +163,7 @@ def shuffle_entrances(world: "Lingo2World"):
160 port_id_by_name: dict[str, int] = {} 163 port_id_by_name: dict[str, int] = {}
161 164
162 shuffleable_ports = [port for port in world.static_logic.objects.ports 165 shuffleable_ports = [port for port in world.static_logic.objects.ports
163 if not port.no_shuffle 166 if not port.no_shuffle and world.player_logic.should_shuffle_room(port.room_id)]
164 and world.static_logic.get_room_object_map_id(port) in world.player_logic.shuffled_maps]
165 167
166 if len(shuffleable_ports) % 2 == 1: 168 if len(shuffleable_ports) % 2 == 1:
167 # We have an odd number of shuffleable ports! Pick a port from a room that has more than one, and make it a 169 # We have an odd number of shuffleable ports! Pick a port from a room that has more than one, and make it a