diff options
Diffstat (limited to 'items.py')
-rw-r--r-- | items.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/items.py b/items.py index 67eacea..78b288e 100644 --- a/items.py +++ b/items.py | |||
@@ -3,7 +3,7 @@ from typing import Dict, List, NamedTuple, Set | |||
3 | 3 | ||
4 | from BaseClasses import Item, ItemClassification | 4 | from BaseClasses import Item, ItemClassification |
5 | from .static_logic import DOORS_BY_ROOM, PROGRESSIVE_ITEMS, get_door_group_item_id, get_door_item_id, \ | 5 | from .static_logic import DOORS_BY_ROOM, PROGRESSIVE_ITEMS, get_door_group_item_id, get_door_item_id, \ |
6 | get_progressive_item_id, get_special_item_id | 6 | get_progressive_item_id, get_special_item_id, PANEL_DOORS_BY_ROOM, get_panel_door_item_id, get_panel_group_item_id |
7 | 7 | ||
8 | 8 | ||
9 | class ItemType(Enum): | 9 | class ItemType(Enum): |
@@ -65,6 +65,21 @@ def load_item_data(): | |||
65 | ItemClassification.progression, ItemType.NORMAL, True, []) | 65 | ItemClassification.progression, ItemType.NORMAL, True, []) |
66 | ITEMS_BY_GROUP.setdefault("Doors", []).append(group) | 66 | ITEMS_BY_GROUP.setdefault("Doors", []).append(group) |
67 | 67 | ||
68 | panel_groups: Set[str] = set() | ||
69 | for room_name, panel_doors in PANEL_DOORS_BY_ROOM.items(): | ||
70 | for panel_door_name, panel_door in panel_doors.items(): | ||
71 | if panel_door.panel_group is not None: | ||
72 | panel_groups.add(panel_door.panel_group) | ||
73 | |||
74 | ALL_ITEM_TABLE[panel_door.item_name] = ItemData(get_panel_door_item_id(room_name, panel_door_name), | ||
75 | ItemClassification.progression, ItemType.NORMAL, False, []) | ||
76 | ITEMS_BY_GROUP.setdefault("Panels", []).append(panel_door.item_name) | ||
77 | |||
78 | for group in panel_groups: | ||
79 | ALL_ITEM_TABLE[group] = ItemData(get_panel_group_item_id(group), ItemClassification.progression, | ||
80 | ItemType.NORMAL, False, []) | ||
81 | ITEMS_BY_GROUP.setdefault("Panels", []).append(group) | ||
82 | |||
68 | special_items: Dict[str, ItemClassification] = { | 83 | special_items: Dict[str, ItemClassification] = { |
69 | ":)": ItemClassification.filler, | 84 | ":)": ItemClassification.filler, |
70 | "The Feeling of Being Lost": ItemClassification.filler, | 85 | "The Feeling of Being Lost": ItemClassification.filler, |