From d7beb1dfcf6e3adae072ad0b61d08597cf909c18 Mon Sep 17 00:00:00 2001 From: compiling <8335770+compiling@users.noreply.github.com> Date: Tue, 21 Jan 2020 00:39:17 +1100 Subject: [PATCH] Re-add Sweep for crystal access in playthrough algorithm (might not be called when sweeping for keys) --- Main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Main.py b/Main.py index 71b58120..11f465bc 100644 --- a/Main.py +++ b/Main.py @@ -385,6 +385,7 @@ def create_playthrough(world): logging.getLogger('').debug('Building up collection spheres.') while sphere_candidates: state.sweep_for_events(key_only=True) + state.sweep_for_crystal_access() sphere = [] # build up spheres of collection radius. Everything in each sphere is independent from each other in dependencies and only depends on lower spheres @@ -446,6 +447,7 @@ def create_playthrough(world): collection_spheres = [] while required_locations: state.sweep_for_events(key_only=True) + state.sweep_for_crystal_access() sphere = list(filter(lambda loc: state.can_reach(loc) and state.not_flooding_a_key(world, loc), required_locations))