diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-07 17:18:47 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-07 17:18:47 -0400 |
| commit | c0c5431800d0306d01814e9902566c9b4fc9220b (patch) | |
| tree | 50d206c31bb7f535c3f2ca0b8d0f735c5a61f9a5 /apworld/regions.py | |
| parent | c9da387ede51f207825b63d9f13036a7b661d4b3 (diff) | |
| download | lingo2-archipelago-c0c5431800d0306d01814e9902566c9b4fc9220b.tar.gz lingo2-archipelago-c0c5431800d0306d01814e9902566c9b4fc9220b.tar.bz2 lingo2-archipelago-c0c5431800d0306d01814e9902566c9b4fc9220b.zip | |
Assign AP IDs to doors and panels
Diffstat (limited to 'apworld/regions.py')
| -rw-r--r-- | apworld/regions.py | 3 |
1 files changed, 2 insertions, 1 deletions
| diff --git a/apworld/regions.py b/apworld/regions.py index 24c2281..d388678 100644 --- a/apworld/regions.py +++ b/apworld/regions.py | |||
| @@ -11,7 +11,8 @@ def create_region(room, world: "Lingo2World") -> Region: | |||
| 11 | new_region = Region(room.name, world.player, world.multiworld) | 11 | new_region = Region(room.name, world.player, world.multiworld) |
| 12 | 12 | ||
| 13 | for location in world.player_logic.locations_by_room.get(room.id, {}): | 13 | for location in world.player_logic.locations_by_room.get(room.id, {}): |
| 14 | new_location = Lingo2Location(world.player, location.name, location.code, new_region) | 14 | new_location = Lingo2Location(world.player, world.static_logic.location_id_to_name[location.code], |
| 15 | location.code, new_region) | ||
| 15 | new_region.locations.append(new_location) | 16 | new_region.locations.append(new_location) |
| 16 | 17 | ||
| 17 | return new_region | 18 | return new_region |
