Don't flood the keys in swamp when balancing multiworld

This commit is contained in:
compiling
2020-01-18 15:59:14 +11:00
parent 9033b5331f
commit db4ad1b3d0

View File

@@ -346,7 +346,7 @@ def balance_multiworld_progression(world):
def get_sphere_locations(sphere_state, locations):
sphere_state.sweep_for_events(key_only=True, locations=locations)
return [loc for loc in locations if sphere_state.can_reach(loc)]
return [loc for loc in locations if sphere_state.can_reach(loc) and sphere_state.not_flooding_a_key(sphere_state.world, loc)]
while True:
sphere_locations = get_sphere_locations(state, unchecked_locations)