From db4ad1b3d0a7356c52b88ccc0e78c34c94e8b0da Mon Sep 17 00:00:00 2001 From: compiling <8335770+compiling@users.noreply.github.com> Date: Sat, 18 Jan 2020 15:59:14 +1100 Subject: [PATCH] Don't flood the keys in swamp when balancing multiworld --- Fill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fill.py b/Fill.py index f33162ea..4069eca9 100644 --- a/Fill.py +++ b/Fill.py @@ -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)