invalidate state cache so that reachable_regions are recalculated during TR key logic

This commit is contained in:
espeon65536 2021-08-31 20:07:23 -05:00 committed by Fabian Dill
parent fb0f70b3e3
commit fbb8d6b132
1 changed files with 1 additions and 0 deletions

View File

@ -855,6 +855,7 @@ def set_trock_key_rules(world, player):
all_state = world.get_all_state()
all_state.reachable_regions[player] = set() # wipe reachable regions so that the locked doors actually work
all_state.stale[player] = True
# Check if each of the four main regions of the dungoen can be reached. The previous code section prevents key-costing moves within the dungeon.
can_reach_back = all_state.can_reach(world.get_region('Turtle Rock (Eye Bridge)', player)) if world.can_access_trock_eyebridge[player] is None else world.can_access_trock_eyebridge[player]