mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
The Messenger: do all empty state validation during portal shuffle (#4971)
This commit is contained in:
@@ -292,12 +292,10 @@ def disconnect_portals(world: "MessengerWorld") -> None:
|
||||
|
||||
|
||||
def validate_portals(world: "MessengerWorld") -> bool:
|
||||
if world.options.shuffle_transitions:
|
||||
return True
|
||||
new_state = CollectionState(world.multiworld)
|
||||
new_state = CollectionState(world.multiworld, True)
|
||||
new_state.update_reachable_regions(world.player)
|
||||
reachable_locs = 0
|
||||
for loc in world.multiworld.get_locations(world.player):
|
||||
for loc in world.get_locations():
|
||||
reachable_locs += loc.can_reach(new_state)
|
||||
if reachable_locs > 5:
|
||||
return True
|
||||
|
Reference in New Issue
Block a user