From ec49fa026b6e579b45628d306fdacd287780dac2 Mon Sep 17 00:00:00 2001 From: compiling <8335770+compiling@users.noreply.github.com> Date: Sun, 12 Jul 2020 20:05:18 +1000 Subject: [PATCH] Fix bunny glitch rules for Tower of Hera (requires a sword to hit the switch) and Mini Moldorm Cave (pits prevent clearing in superbunny state) --- OverworldGlitchRules.py | 1 - Rules.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OverworldGlitchRules.py b/OverworldGlitchRules.py index 151d9744..71e17f86 100644 --- a/OverworldGlitchRules.py +++ b/OverworldGlitchRules.py @@ -9,7 +9,6 @@ def get_sword_required_superbunny_mirror_regions(): """ Cave regions that superbunny can get through - but only with a sword. """ - yield 'Mini Moldorm Cave' yield 'Spiral Cave (Top)' def get_boots_required_superbunny_mirror_regions(): diff --git a/Rules.py b/Rules.py index 1699c8e7..ab9ae102 100644 --- a/Rules.py +++ b/Rules.py @@ -1410,6 +1410,8 @@ def set_bunny_rules(world: World, player: int, inverted: bool): if world.logic[player] == 'owglitches': if region.name == 'Swamp Palace (Entrance)': return lambda state: state.has_Pearl(player) + if region.name == 'Tower of Hera (Bottom)': # Need to hit the crystal switch + return lambda state: state.has_Mirror(player) and state.has_sword(player) or state.has_Pearl(player) if region.name in OverworldGlitchRules.get_invalid_bunny_revival_dungeons(): return lambda state: state.has_Mirror(player) or state.has_Pearl(player) if region.type == RegionType.Dungeon: