mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
ALttP: Re-mark light/dark world regions after applying plando connections (#2964)
This commit is contained in:
@@ -3,6 +3,8 @@ from collections import defaultdict
|
|||||||
|
|
||||||
from .OverworldGlitchRules import overworld_glitch_connections
|
from .OverworldGlitchRules import overworld_glitch_connections
|
||||||
from .UnderworldGlitchRules import underworld_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):
|
def link_entrances(world, player):
|
||||||
@@ -1827,6 +1829,10 @@ def plando_connect(world, player: int):
|
|||||||
func(world, connection.entrance, connection.exit, player)
|
func(world, connection.entrance, connection.exit, player)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise Exception(f"Could not connect using {connection}") from 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)',
|
LW_Dungeon_Entrances = ['Desert Palace Entrance (South)',
|
||||||
|
Reference in New Issue
Block a user