summary refs log tree commit diff stats
path: root/player_logic.py
diff options
context:
space:
mode:
Diffstat (limited to 'player_logic.py')
-rw-r--r--player_logic.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/player_logic.py b/player_logic.py index 3a6eedf..f5eb986 100644 --- a/player_logic.py +++ b/player_logic.py
@@ -1,12 +1,12 @@
1from enum import Enum 1from enum import Enum
2from typing import Dict, List, NamedTuple, Optional, Set, Tuple, TYPE_CHECKING 2from typing import Dict, List, NamedTuple, Optional, Set, Tuple, TYPE_CHECKING
3 3
4from .datatypes import Door, RoomAndDoor, RoomAndPanel
4from .items import ALL_ITEM_TABLE 5from .items import ALL_ITEM_TABLE
5from .locations import ALL_LOCATION_TABLE, LocationClassification 6from .locations import ALL_LOCATION_TABLE, LocationClassification
6from .options import LocationChecks, ShuffleDoors, VictoryCondition 7from .options import LocationChecks, ShuffleDoors, VictoryCondition
7from .static_logic import DOORS_BY_ROOM, Door, PAINTINGS, PAINTINGS_BY_ROOM, PAINTING_ENTRANCES, PAINTING_EXITS, \ 8from .static_logic import DOORS_BY_ROOM, PAINTINGS, PAINTING_ENTRANCES, PAINTING_EXITS, \
8 PANELS_BY_ROOM, PROGRESSION_BY_ROOM, REQUIRED_PAINTING_ROOMS, REQUIRED_PAINTING_WHEN_NO_DOORS_ROOMS, RoomAndDoor, \ 9 PANELS_BY_ROOM, PROGRESSION_BY_ROOM, REQUIRED_PAINTING_ROOMS, REQUIRED_PAINTING_WHEN_NO_DOORS_ROOMS
9 RoomAndPanel
10 10
11if TYPE_CHECKING: 11if TYPE_CHECKING:
12 from . import LingoWorld 12 from . import LingoWorld
@@ -279,8 +279,9 @@ class LingoPlayerLogic:
279 279
280 # When painting shuffle is off, most Starting Room paintings give color hallways access. The Wondrous's 280 # When painting shuffle is off, most Starting Room paintings give color hallways access. The Wondrous's
281 # painting does not, but it gives access to SHRINK and WELCOME BACK. 281 # painting does not, but it gives access to SHRINK and WELCOME BACK.
282 for painting_obj in PAINTINGS_BY_ROOM["Starting Room"]: 282 for painting_obj in PAINTINGS.values():
283 if not painting_obj.enter_only or painting_obj.required_door is None: 283 if not painting_obj.enter_only or painting_obj.required_door is None\
284 or painting_obj.room != "Starting Room":
284 continue 285 continue
285 286
286 # If painting shuffle is on, we only want to consider paintings that actually go somewhere. 287 # If painting shuffle is on, we only want to consider paintings that actually go somewhere.