Re-add Sweep for crystal access in playthrough algorithm (might not be called when sweeping for keys)

This commit is contained in:
compiling
2020-01-21 00:39:17 +11:00
parent 138003912c
commit d7beb1dfcf

View File

@@ -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))