First stab at fixing crystal switch spread - probably not done.

This commit is contained in:
aerinon
2020-01-15 16:28:22 -07:00
parent 21907e1b41
commit ef6b171233
2 changed files with 75 additions and 31 deletions

View File

@@ -363,7 +363,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()
# 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
@@ -425,7 +425,7 @@ def create_playthrough(world):
collection_spheres = []
while required_locations:
state.sweep_for_events(key_only=True)
state.sweep_for_crystal_access()
# state.sweep_for_crystal_access()
sphere = list(filter(lambda loc: state.can_reach(loc) and state.not_flooding_a_key(world, loc), required_locations))