diff options
Diffstat (limited to 'apworld/player_logic.py')
-rw-r--r-- | apworld/player_logic.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apworld/player_logic.py b/apworld/player_logic.py index f67d7f9..455e24f 100644 --- a/apworld/player_logic.py +++ b/apworld/player_logic.py | |||
@@ -101,6 +101,10 @@ class Lingo2PlayerLogic: | |||
101 | self.locations_by_room.setdefault(mastery.room_id, []).append(PlayerLocation(mastery.ap_id, | 101 | self.locations_by_room.setdefault(mastery.room_id, []).append(PlayerLocation(mastery.ap_id, |
102 | AccessRequirements())) | 102 | AccessRequirements())) |
103 | 103 | ||
104 | for ending in world.static_logic.objects.endings: | ||
105 | self.locations_by_room.setdefault(ending.room_id, []).append(PlayerLocation(ending.ap_id, | ||
106 | AccessRequirements())) | ||
107 | |||
104 | def get_panel_reqs(self, panel_id: int, answer: str | None) -> AccessRequirements: | 108 | def get_panel_reqs(self, panel_id: int, answer: str | None) -> AccessRequirements: |
105 | if answer is None: | 109 | if answer is None: |
106 | if panel_id not in self.panel_reqs: | 110 | if panel_id not in self.panel_reqs: |