diff options
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 675c6ae..1efdbc1 100644 --- a/apworld/player_logic.py +++ b/apworld/player_logic.py | |||
@@ -16,5 +16,5 @@ class Lingo2PlayerLogic: | |||
16 | self.locations_by_room = {} | 16 | self.locations_by_room = {} |
17 | 17 | ||
18 | for door in world.static_logic.objects.doors: | 18 | for door in world.static_logic.objects.doors: |
19 | if door.type == common_pb2.DoorType.STANDARD: | 19 | if door.type in [common_pb2.DoorType.STANDARD, common_pb2.DoorType.LOCATION_ONLY]: |
20 | self.locations_by_room.setdefault(door.room_id, []).append(PlayerLocation(door.ap_id)) | 20 | self.locations_by_room.setdefault(door.room_id, []).append(PlayerLocation(door.ap_id)) |
diff --git a/apworld/static_logic.py b/apworld/static_logic.py index db2af82..1cab340 100644 --- a/apworld/static_logic.py +++ b/apworld/static_logic.py | |||
@@ -18,11 +18,11 @@ class Lingo2StaticLogic: | |||
18 | self.objects.ParseFromString(bytearray(file)) | 18 | self.objects.ParseFromString(bytearray(file)) |
19 | 19 | ||
20 | for door in self.objects.doors: | 20 | for door in self.objects.doors: |
21 | if door.type == common_pb2.DoorType.STANDARD: | 21 | if door.type in [common_pb2.DoorType.STANDARD, common_pb2.DoorType.LOCATION_ONLY]: |
22 | location_name = f"{self.objects.maps[door.map_id].name} - {door.name}" | 22 | location_name = f"{self.objects.maps[door.map_id].name} - {door.name}" |
23 | self.location_id_to_name[door.ap_id] = location_name | 23 | self.location_id_to_name[door.ap_id] = location_name |
24 | 24 | ||
25 | if door.type != common_pb2.DoorType.EVENT: | 25 | if door.type not in [common_pb2.DoorType.EVENT, common_pb2.DoorType.LOCATION_ONLY]: |
26 | item_name = f"{self.objects.maps[door.map_id].name} - {door.name}" | 26 | item_name = f"{self.objects.maps[door.map_id].name} - {door.name}" |
27 | self.item_id_to_name[door.ap_id] = item_name | 27 | self.item_id_to_name[door.ap_id] = item_name |
28 | 28 | ||