ALttP: Re-mark light/dark world regions after applying plando connections (#2964)

This commit is contained in:
CaitSith2 2024-04-01 06:07:56 -07:00 committed by GitHub
parent 35458380e6
commit 9aeeeb077a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,8 @@ from collections import defaultdict
from .OverworldGlitchRules import overworld_glitch_connections
from .UnderworldGlitchRules import underworld_glitch_connections
from .Regions import mark_light_world_regions
from .InvertedRegions import mark_dark_world_regions
def link_entrances(world, player):
@ -1827,6 +1829,10 @@ def plando_connect(world, player: int):
func(world, connection.entrance, connection.exit, player)
except Exception as e:
raise Exception(f"Could not connect using {connection}") from e
if world.mode[player] != 'inverted':
mark_light_world_regions(world, player)
else:
mark_dark_world_regions(world, player)
LW_Dungeon_Entrances = ['Desert Palace Entrance (South)',