Made the CollectionState crystal switch aware and added crystal rules

Small adjustment to big key forbidding
This commit is contained in:
aerinon
2020-01-06 15:32:33 -07:00
parent c475dc746c
commit f26c83e852
6 changed files with 137 additions and 17 deletions

View File

@@ -325,6 +325,7 @@ def create_playthrough(world):
while sphere_candidates:
if not world.keysanity:
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
@@ -379,6 +380,7 @@ def create_playthrough(world):
while required_locations:
if not world.keysanity:
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))