Skip to content

Commit 9aeeeb0

Browse files
authored
ALttP: Re-mark light/dark world regions after applying plando connections (ArchipelagoMW#2964)
1 parent 3545838 commit 9aeeeb0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

worlds/alttp/EntranceShuffle.py

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
from .OverworldGlitchRules import overworld_glitch_connections
55
from .UnderworldGlitchRules import underworld_glitch_connections
6+
from .Regions import mark_light_world_regions
7+
from .InvertedRegions import mark_dark_world_regions
68

79

810
def link_entrances(world, player):
@@ -1827,6 +1829,10 @@ def plando_connect(world, player: int):
18271829
func(world, connection.entrance, connection.exit, player)
18281830
except Exception as e:
18291831
raise Exception(f"Could not connect using {connection}") from e
1832+
if world.mode[player] != 'inverted':
1833+
mark_light_world_regions(world, player)
1834+
else:
1835+
mark_dark_world_regions(world, player)
18301836

18311837

18321838
LW_Dungeon_Entrances = ['Desert Palace Entrance (South)',

0 commit comments

Comments
 (0)