diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-20 15:28:40 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-20 15:28:40 -0400 |
commit | bcf503855107404ab3c8e0a7edd750c2720f8024 (patch) | |
tree | e3b9b98ac0e288fdf9135c161c525392e824191f /apworld/player_logic.py | |
parent | d77c73397b684faa55f0e95484ac89ca68bde1ad (diff) | |
download | lingo2-archipelago-bcf503855107404ab3c8e0a7edd750c2720f8024.tar.gz lingo2-archipelago-bcf503855107404ab3c8e0a7edd750c2720f8024.tar.bz2 lingo2-archipelago-bcf503855107404ab3c8e0a7edd750c2720f8024.zip |
Maps have display names now
Also added endings to the apworld.
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: |