From e8fef8fc7beb9b54afb340e29e10d26c32e19220 Mon Sep 17 00:00:00 2001 From: compiling <8335770+compiling@users.noreply.github.com> Date: Sat, 25 Apr 2020 16:46:32 +1000 Subject: [PATCH] Fix moon pearl checks to avoid requiring moon pearl for mirror accessible locations. --- Rules.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rules.py b/Rules.py index e82c600b..c1fb548f 100644 --- a/Rules.py +++ b/Rules.py @@ -1560,7 +1560,7 @@ def set_bunny_rules(world, player): bunny_impassable_caves = ['Bumper Cave', 'Two Brothers House', 'Hookshot Cave', 'Skull Woods First Section (Right)', 'Skull Woods First Section (Left)', 'Skull Woods First Section (Top)', 'Turtle Rock (Entrance)', 'Turtle Rock (Second Section)', 'Turtle Rock (Big Chest)', 'Skull Woods Second Section (Drop)', 'Turtle Rock (Eye Bridge)', 'Sewers', 'Pyramid', 'Spiral Cave (Top)', 'Desert Palace Main (Inner)', 'Fairy Ascension Cave (Drop)'] - bunny_accessible_locations = ['Link\'s Uncle', 'Sahasrahla', 'Sick Kid', 'Lost Woods Hideout', 'Lumberjack Tree', 'Checkerboard Cave', 'Potion Shop', 'Spectacle Rock Cave', 'Pyramid', 'Hype Cave - Generous Guy', 'Peg Cave', 'Bumper Cave Ledge', 'Dark Blacksmith Ruins', 'Spectacle Rock', 'Bombos Tablet'] + bunny_accessible_locations = ['Link\'s Uncle', 'Sahasrahla', 'Sick Kid', 'Lost Woods Hideout', 'Lumberjack Tree', 'Checkerboard Cave', 'Potion Shop', 'Spectacle Rock Cave', 'Pyramid', 'Hype Cave - Generous Guy', 'Peg Cave', 'Bumper Cave Ledge', 'Dark Blacksmith Ruins'] def path_to_access_rule(path, entrance): @@ -1637,7 +1637,7 @@ def set_bunny_rules(world, player): add_rule(paradox_shop.entrances[0], get_rule_to_add(paradox_shop)) for entrance in world.get_entrances(): - if entrance.player == player and entrance.parent_region.is_dark_world: + if entrance.player == player and entrance.connected_region.is_dark_world: if world.logic == 'owglitches': if entrance.connected_region.type == RegionType.Dungeon: if entrance.connected_region.name in OWGSets.get_invalid_bunny_revival_dungeons(): @@ -1740,7 +1740,7 @@ def set_inverted_bunny_rules(world, player): # Add requirements for all locations that are actually in the light world, except those available to the bunny for entrance in world.get_entrances(): - if entrance.player == player and entrance.parent_region.is_light_world: + if entrance.player == player and entrance.connected_region.is_light_world: if world.logic == 'owglitches': if entrance.connected_region.type == RegionType.Dungeon: if entrance.connected_region.name in OWGSets.get_invalid_bunny_revival_dungeons():