diff options
Diffstat (limited to 'apworld/player_logic.py')
-rw-r--r-- | apworld/player_logic.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apworld/player_logic.py b/apworld/player_logic.py index 5be066d..84c93c8 100644 --- a/apworld/player_logic.py +++ b/apworld/player_logic.py | |||
@@ -4,7 +4,7 @@ from .generated import data_pb2 as data_pb2 | |||
4 | from .items import SYMBOL_ITEMS | 4 | from .items import SYMBOL_ITEMS |
5 | from typing import TYPE_CHECKING, NamedTuple | 5 | from typing import TYPE_CHECKING, NamedTuple |
6 | 6 | ||
7 | from .options import VictoryCondition, ShuffleLetters, CyanDoorBehavior | 7 | from .options import ShuffleLetters, CyanDoorBehavior |
8 | 8 | ||
9 | if TYPE_CHECKING: | 9 | if TYPE_CHECKING: |
10 | from . import Lingo2World | 10 | from . import Lingo2World |
@@ -214,6 +214,7 @@ class Lingo2PlayerLogic: | |||
214 | real_items: list[str] | 214 | real_items: list[str] |
215 | 215 | ||
216 | double_letter_amount: dict[str, int] | 216 | double_letter_amount: dict[str, int] |
217 | goal_room_id: int | ||
217 | 218 | ||
218 | def __init__(self, world: "Lingo2World"): | 219 | def __init__(self, world: "Lingo2World"): |
219 | self.world = world | 220 | self.world = world |
@@ -327,6 +328,7 @@ class Lingo2PlayerLogic: | |||
327 | 328 | ||
328 | if world.options.victory_condition.current_key.removesuffix("_ending").upper() == ending.name: | 329 | if world.options.victory_condition.current_key.removesuffix("_ending").upper() == ending.name: |
329 | item_name = "Victory" | 330 | item_name = "Victory" |
331 | self.goal_room_id = ending.room_id | ||
330 | 332 | ||
331 | self.event_loc_item_by_room.setdefault(ending.room_id, {})[event_name] = item_name | 333 | self.event_loc_item_by_room.setdefault(ending.room_id, {})[event_name] = item_name |
332 | 334 | ||