fixing mirror bunny stuff
This commit is contained in:
parent
3015133abd
commit
ea4340b796
|
@ -176,4 +176,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)',
|
||||||
]
|
]
|
20
Rules.py
20
Rules.py
|
@ -1340,13 +1340,13 @@ def set_bunny_rules(world, player):
|
||||||
return lambda state: any(rule(state) for rule in options)
|
return lambda state: any(rule(state) for rule in options)
|
||||||
|
|
||||||
def get_rule_to_add(region, location = None, connecting_entrance = None):
|
def get_rule_to_add(region, location = None, connecting_entrance = None):
|
||||||
if world.logic[player] == 'owglitches' and connecting_entrance != None:
|
# In OWG, a location can potentially be superbunny-mirror accessible or
|
||||||
if region.name == 'Tower of Hera (Bottom)' and connecting_entrance.name not in OWGSets.get_invalid_mirror_bunny_entrances_dw():
|
# bunny revival accessible.
|
||||||
return lambda state: state.can_superbunny_mirror_with_sword(player) or state.has_Pearl(player)
|
if world.logic[player] == 'owglitches':
|
||||||
if region.name == 'Turtle Rock (Entrance)' 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.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:
|
||||||
|
@ -1437,13 +1437,13 @@ def set_inverted_bunny_rules(world, player):
|
||||||
return lambda state: any(rule(state) for rule in options)
|
return lambda state: any(rule(state) for rule in options)
|
||||||
|
|
||||||
def get_rule_to_add(region, location = None, connecting_entrance = None):
|
def get_rule_to_add(region, location = None, connecting_entrance = None):
|
||||||
if world.logic[player] == 'owglitches' and connecting_entrance != None:
|
# In OWG, a location can potentially be superbunny-mirror accessible or
|
||||||
if region.name == 'Tower of Hera (Bottom)' and connecting_entrance.name not in OWGSets.get_invalid_mirror_bunny_entrances_lw():
|
# bunny revival accessible.
|
||||||
return lambda state: state.can_superbunny_mirror_with_sword(player) or state.has_Pearl(player)
|
if world.logic[player] == 'owglitches':
|
||||||
if region.name == 'Turtle Rock (Entrance)' 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.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:
|
||||||
|
|
Loading…
Reference in New Issue