diff options
Diffstat (limited to 'static_logic.py')
| -rw-r--r-- | static_logic.py | 8 |
1 files changed, 6 insertions, 2 deletions
| diff --git a/static_logic.py b/static_logic.py index 1da265d..c7ee001 100644 --- a/static_logic.py +++ b/static_logic.py | |||
| @@ -1,10 +1,9 @@ | |||
| 1 | import os | 1 | import os |
| 2 | import pkgutil | 2 | import pkgutil |
| 3 | import pickle | ||
| 3 | from io import BytesIO | 4 | from io import BytesIO |
| 4 | from typing import Dict, List, Set | 5 | from typing import Dict, List, Set |
| 5 | 6 | ||
| 6 | import pickle | ||
| 7 | |||
| 8 | from .datatypes import Door, Painting, Panel, Progression, Room | 7 | from .datatypes import Door, Painting, Panel, Progression, Room |
| 9 | 8 | ||
| 10 | ALL_ROOMS: List[Room] = [] | 9 | ALL_ROOMS: List[Room] = [] |
| @@ -21,6 +20,9 @@ PAINTING_EXITS: int = 0 | |||
| 21 | REQUIRED_PAINTING_ROOMS: List[str] = [] | 20 | REQUIRED_PAINTING_ROOMS: List[str] = [] |
| 22 | REQUIRED_PAINTING_WHEN_NO_DOORS_ROOMS: List[str] = [] | 21 | REQUIRED_PAINTING_WHEN_NO_DOORS_ROOMS: List[str] = [] |
| 23 | 22 | ||
| 23 | SUNWARP_ENTRANCES: List[str] = [] | ||
| 24 | SUNWARP_EXITS: List[str] = [] | ||
| 25 | |||
| 24 | SPECIAL_ITEM_IDS: Dict[str, int] = {} | 26 | SPECIAL_ITEM_IDS: Dict[str, int] = {} |
| 25 | PANEL_LOCATION_IDS: Dict[str, Dict[str, int]] = {} | 27 | PANEL_LOCATION_IDS: Dict[str, Dict[str, int]] = {} |
| 26 | DOOR_LOCATION_IDS: Dict[str, Dict[str, int]] = {} | 28 | DOOR_LOCATION_IDS: Dict[str, Dict[str, int]] = {} |
| @@ -99,6 +101,8 @@ def load_static_data_from_file(): | |||
| 99 | PAINTING_EXITS = pickdata["PAINTING_EXITS"] | 101 | PAINTING_EXITS = pickdata["PAINTING_EXITS"] |
| 100 | REQUIRED_PAINTING_ROOMS.extend(pickdata["REQUIRED_PAINTING_ROOMS"]) | 102 | REQUIRED_PAINTING_ROOMS.extend(pickdata["REQUIRED_PAINTING_ROOMS"]) |
| 101 | REQUIRED_PAINTING_WHEN_NO_DOORS_ROOMS.extend(pickdata["REQUIRED_PAINTING_WHEN_NO_DOORS_ROOMS"]) | 103 | REQUIRED_PAINTING_WHEN_NO_DOORS_ROOMS.extend(pickdata["REQUIRED_PAINTING_WHEN_NO_DOORS_ROOMS"]) |
| 104 | SUNWARP_ENTRANCES.extend(pickdata["SUNWARP_ENTRANCES"]) | ||
| 105 | SUNWARP_EXITS.extend(pickdata["SUNWARP_EXITS"]) | ||
| 102 | SPECIAL_ITEM_IDS.update(pickdata["SPECIAL_ITEM_IDS"]) | 106 | SPECIAL_ITEM_IDS.update(pickdata["SPECIAL_ITEM_IDS"]) |
| 103 | PANEL_LOCATION_IDS.update(pickdata["PANEL_LOCATION_IDS"]) | 107 | PANEL_LOCATION_IDS.update(pickdata["PANEL_LOCATION_IDS"]) |
| 104 | DOOR_LOCATION_IDS.update(pickdata["DOOR_LOCATION_IDS"]) | 108 | DOOR_LOCATION_IDS.update(pickdata["DOOR_LOCATION_IDS"]) |
