diff options
-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 | ||