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 00a01d16fd
commit ec49fa026b
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

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