diff options
Diffstat (limited to 'apworld/static_logic.py')
| -rw-r--r-- | apworld/static_logic.py | 4 |
1 files changed, 2 insertions, 2 deletions
| 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 | ||
