From fbb8d6b1324f1f6ddd171662a0d7309e080e2eef Mon Sep 17 00:00:00 2001 From: espeon65536 Date: Tue, 31 Aug 2021 20:07:23 -0500 Subject: [PATCH] invalidate state cache so that reachable_regions are recalculated during TR key logic --- worlds/alttp/Rules.py | 1 + 1 file changed, 1 insertion(+) diff --git a/worlds/alttp/Rules.py b/worlds/alttp/Rules.py index 492dcf2e..4e986c0d 100644 --- a/worlds/alttp/Rules.py +++ b/worlds/alttp/Rules.py @@ -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]