diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-29 10:37:11 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-29 10:37:11 -0400 |
commit | 91f829a193b9fd7686bd401bc0704f26bf75dafc (patch) | |
tree | 2043d4504c44b425f8f059e57bbfc84e3af5b921 | |
parent | b0b7e55a0244b8d620a791cb49a816817e81b658 (diff) | |
download | lingo2-archipelago-91f829a193b9fd7686bd401bc0704f26bf75dafc.tar.gz lingo2-archipelago-91f829a193b9fd7686bd401bc0704f26bf75dafc.tar.bz2 lingo2-archipelago-91f829a193b9fd7686bd401bc0704f26bf75dafc.zip |
Don't create a location for your ending
-rw-r--r-- | apworld/player_logic.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apworld/player_logic.py b/apworld/player_logic.py index 8f2bd59..5be066d 100644 --- a/apworld/player_logic.py +++ b/apworld/player_logic.py | |||
@@ -316,12 +316,9 @@ class Lingo2PlayerLogic: | |||
316 | AccessRequirements())) | 316 | AccessRequirements())) |
317 | 317 | ||
318 | for ending in world.static_logic.objects.endings: | 318 | for ending in world.static_logic.objects.endings: |
319 | # Don't ever create a location for White Ending. Don't even make an event for it if it's not the victory | 319 | # Don't create a location for your selected ending, and never create a location for White Ending. |
320 | # condition, since it is necessarily going to be in the postgame. | 320 | if world.options.victory_condition.current_key.removesuffix("_ending").upper() != ending.name\ |
321 | if ending.name == "WHITE": | 321 | and ending.name != "WHITE": |
322 | if self.world.options.victory_condition != VictoryCondition.option_white_ending: | ||
323 | continue | ||
324 | else: | ||
325 | self.locations_by_room.setdefault(ending.room_id, []).append(PlayerLocation(ending.ap_id, | 322 | self.locations_by_room.setdefault(ending.room_id, []).append(PlayerLocation(ending.ap_id, |
326 | AccessRequirements())) | 323 | AccessRequirements())) |
327 | 324 | ||