diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-14 14:24:47 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-14 14:24:47 -0400 |
| commit | 8662f88dfe0d7f2a9090037a92a8d1d761614a8c (patch) | |
| tree | 6af30e778d6d05859109e37d972f2bf3e80c8db2 /apworld | |
| parent | eb23fc8152fa0f7033f3efeafbc0b9bec4ab865b (diff) | |
| download | lingo2-archipelago-8662f88dfe0d7f2a9090037a92a8d1d761614a8c.tar.gz lingo2-archipelago-8662f88dfe0d7f2a9090037a92a8d1d761614a8c.tar.bz2 lingo2-archipelago-8662f88dfe0d7f2a9090037a92a8d1d761614a8c.zip | |
Assigned IDs for the_gold, the_graveyard, and the_great
Diffstat (limited to 'apworld')
| -rw-r--r-- | apworld/player_logic.py | 2 | ||||
| -rw-r--r-- | apworld/static_logic.py | 4 |
2 files changed, 3 insertions, 3 deletions
| diff --git a/apworld/player_logic.py b/apworld/player_logic.py index c2850d5..f67d7f9 100644 --- a/apworld/player_logic.py +++ b/apworld/player_logic.py | |||
| @@ -89,7 +89,7 @@ class Lingo2PlayerLogic: | |||
| 89 | self.real_items.append(door_item_name) | 89 | self.real_items.append(door_item_name) |
| 90 | 90 | ||
| 91 | for door in world.static_logic.objects.doors: | 91 | for door in world.static_logic.objects.doors: |
| 92 | if door.type in [data_pb2.DoorType.STANDARD, data_pb2.DoorType.LOCATION_ONLY]: | 92 | if door.type in [data_pb2.DoorType.STANDARD, data_pb2.DoorType.LOCATION_ONLY, data_pb2.DoorType.GRAVESTONE]: |
| 93 | self.locations_by_room.setdefault(door.room_id, []).append(PlayerLocation(door.ap_id, | 93 | self.locations_by_room.setdefault(door.room_id, []).append(PlayerLocation(door.ap_id, |
| 94 | self.get_door_reqs(door.id))) | 94 | self.get_door_reqs(door.id))) |
| 95 | 95 | ||
| diff --git a/apworld/static_logic.py b/apworld/static_logic.py index 6a05f3d..af1e985 100644 --- a/apworld/static_logic.py +++ b/apworld/static_logic.py | |||
| @@ -17,11 +17,11 @@ class Lingo2StaticLogic: | |||
| 17 | self.objects.ParseFromString(bytearray(file)) | 17 | self.objects.ParseFromString(bytearray(file)) |
| 18 | 18 | ||
| 19 | for door in self.objects.doors: | 19 | for door in self.objects.doors: |
| 20 | if door.type in [data_pb2.DoorType.STANDARD, data_pb2.DoorType.LOCATION_ONLY]: | 20 | if door.type in [data_pb2.DoorType.STANDARD, data_pb2.DoorType.LOCATION_ONLY, data_pb2.DoorType.GRAVESTONE]: |
| 21 | location_name = f"{self.objects.maps[door.map_id].name} - {door.name}" | 21 | location_name = f"{self.objects.maps[door.map_id].name} - {door.name}" |
| 22 | self.location_id_to_name[door.ap_id] = location_name | 22 | self.location_id_to_name[door.ap_id] = location_name |
| 23 | 23 | ||
| 24 | if door.type not in [data_pb2.DoorType.EVENT, data_pb2.DoorType.LOCATION_ONLY]: | 24 | if door.type not in [data_pb2.DoorType.EVENT, data_pb2.DoorType.LOCATION_ONLY, data_pb2.DoorType.GRAVESTONE]: |
| 25 | item_name = self.get_door_item_name(door.id) | 25 | item_name = self.get_door_item_name(door.id) |
| 26 | self.item_id_to_name[door.ap_id] = item_name | 26 | self.item_id_to_name[door.ap_id] = item_name |
| 27 | 27 | ||
