Fix moon pearl checks to avoid requiring moon pearl for mirror accessible locations.

This commit is contained in:
compiling
2020-04-25 16:46:32 +10:00
parent 1f504d0a79
commit e8fef8fc7b

View File

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