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)

This commit is contained in:
compiling
2020-07-12 20:05:18 +10:00
parent 9dbe591fe9
commit 0cc3b888e9
2 changed files with 2 additions and 1 deletions

View File

@@ -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():

View File

@@ -1622,6 +1622,8 @@ def set_bunny_rules(world, player, inverted):
if world.logic == '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: