use_cache argument to get_all_state

This commit is contained in:
espeon65536
2021-09-01 14:01:54 -05:00
committed by Fabian Dill
parent 88451d4239
commit c73b994305
4 changed files with 6 additions and 6 deletions

View File

@@ -853,7 +853,7 @@ def set_trock_key_rules(world, player):
for entrance in ['Turtle Rock Dark Room Staircase', 'Turtle Rock (Chain Chomp Room) (North)', 'Turtle Rock (Chain Chomp Room) (South)', 'Turtle Rock Pokey Room', 'Turtle Rock Big Key Door']:
set_rule(world.get_entrance(entrance, player), lambda state: False)
all_state = world.get_all_state(save_cache=False)
all_state = world.get_all_state(use_cache=False)
all_state.reachable_regions[player] = set() # wipe reachable regions so that the locked doors actually work
all_state.stale[player] = True