fix mirror bunny stuff
This commit is contained in:
@@ -174,4 +174,5 @@ def get_invalid_bunny_revival_dungeons():
|
|||||||
return [
|
return [
|
||||||
'Tower of Hera (Bottom)',
|
'Tower of Hera (Bottom)',
|
||||||
'Swamp Palace (Entrance)',
|
'Swamp Palace (Entrance)',
|
||||||
|
'Turtle Rock (Entrance)',
|
||||||
]
|
]
|
||||||
|
|||||||
16
Rules.py
16
Rules.py
@@ -1575,13 +1575,11 @@ def set_bunny_rules(world, player):
|
|||||||
def get_rule_to_add(region, location = None, connecting_entrance = None):
|
def get_rule_to_add(region, location = None, connecting_entrance = None):
|
||||||
# In OWG, a location can potentially be superbunny-mirror accessible or
|
# In OWG, a location can potentially be superbunny-mirror accessible or
|
||||||
# bunny revival accessible.
|
# bunny revival accessible.
|
||||||
if world.logic == 'owglitches' and connecting_entrance != None:
|
if world.logic == 'owglitches':
|
||||||
if region.name == 'Tower of Hera (Bottom)' and connecting_entrance.name not in OWGSets.get_invalid_mirror_bunny_entrances_dw():
|
if region.name in OWGSets.get_invalid_bunny_revival_dungeons():
|
||||||
return lambda state: state.can_superbunny_mirror_with_sword(player) or state.has_Pearl(player)
|
|
||||||
if region.name == 'Turtle Rock (Entrance)' and connecting_entrance.name not in OWGSets.get_invalid_mirror_bunny_entrances_dw():
|
|
||||||
return lambda state: state.has_Mirror(player) or state.has_Pearl(player)
|
return lambda state: state.has_Mirror(player) or state.has_Pearl(player)
|
||||||
if not any([
|
if not any([
|
||||||
location != None and location.name in OWGSets.get_superbunny_accessible_locations() and connecting_entrance.name not in OWGSets.get_invalid_mirror_bunny_entrances_dw(),
|
None not in [location, connecting_entrance] and location.name in OWGSets.get_superbunny_accessible_locations() and connecting_entrance.name not in OWGSets.get_invalid_mirror_bunny_entrances_dw(),
|
||||||
not region.is_light_world]):
|
not region.is_light_world]):
|
||||||
return lambda state: state.has_Pearl(player)
|
return lambda state: state.has_Pearl(player)
|
||||||
else:
|
else:
|
||||||
@@ -1675,13 +1673,11 @@ def set_inverted_bunny_rules(world, player):
|
|||||||
def get_rule_to_add(region, location = None, connecting_entrance = None):
|
def get_rule_to_add(region, location = None, connecting_entrance = None):
|
||||||
# In OWG, a location can potentially be superbunny-mirror accessible or
|
# In OWG, a location can potentially be superbunny-mirror accessible or
|
||||||
# bunny revival accessible.
|
# bunny revival accessible.
|
||||||
if world.logic == 'owglitches' and connecting_entrance != None:
|
if world.logic == 'owglitches':
|
||||||
if region.name == 'Tower of Hera (Bottom)' and connecting_entrance.name not in OWGSets.get_invalid_mirror_bunny_entrances_lw():
|
if region.name in OWGSets.get_invalid_bunny_revival_dungeons():
|
||||||
return lambda state: state.can_superbunny_mirror_with_sword(player) or state.has_Pearl(player)
|
|
||||||
if region.name == 'Turtle Rock (Entrance)' and connecting_entrance.name not in OWGSets.get_invalid_mirror_bunny_entrances_lw():
|
|
||||||
return lambda state: state.has_Mirror(player) or state.has_Pearl(player)
|
return lambda state: state.has_Mirror(player) or state.has_Pearl(player)
|
||||||
if not any([
|
if not any([
|
||||||
location != None and location.name in OWGSets.get_superbunny_accessible_locations() and connecting_entrance.name not in OWGSets.get_invalid_mirror_bunny_entrances_dw(),
|
None not in [location, connecting_entrance] and location.name in OWGSets.get_superbunny_accessible_locations() and connecting_entrance.name not in OWGSets.get_invalid_mirror_bunny_entrances_lw(),
|
||||||
not region.is_dark_world]):
|
not region.is_dark_world]):
|
||||||
return lambda state: state.has_Pearl(player)
|
return lambda state: state.has_Pearl(player)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user