Fixed logic with Laser Bridge with Byrna Item Functionality
This commit is contained in:
@@ -1300,7 +1300,9 @@ class CollectionState(object):
|
|||||||
return self.has('Fire Rod', player) or (self.has('Bombos', player) and self.has_sword(player))
|
return self.has('Fire Rod', player) or (self.has('Bombos', player) and self.has_sword(player))
|
||||||
|
|
||||||
def can_avoid_lasers(self, player):
|
def can_avoid_lasers(self, player):
|
||||||
return self.has('Mirror Shield', player) or self.has('Cane of Byrna', player) or self.has('Cape', player)
|
return (self.has('Mirror Shield', player) or
|
||||||
|
self.has('Cape', player) or
|
||||||
|
(self.has('Cane of Byrna', player) and self.world.difficulty_adjustments[player] not in ['hard', 'expert']))
|
||||||
|
|
||||||
def is_not_bunny(self, region, player):
|
def is_not_bunny(self, region, player):
|
||||||
return self.has_Pearl(player) or not region.can_cause_bunny(player)
|
return self.has_Pearl(player) or not region.can_cause_bunny(player)
|
||||||
|
|||||||
8
Rules.py
8
Rules.py
@@ -604,10 +604,10 @@ def global_rules(world, player):
|
|||||||
set_rule(location, lambda state: state.has('Cane of Somaria', player))
|
set_rule(location, lambda state: state.has('Cane of Somaria', player))
|
||||||
set_rule(world.get_entrance('TR Final Abyss Balcony Path', player), lambda state: state.has('Cane of Somaria', player))
|
set_rule(world.get_entrance('TR Final Abyss Balcony Path', player), lambda state: state.has('Cane of Somaria', player))
|
||||||
set_rule(world.get_entrance('TR Final Abyss Ledge Path', player), lambda state: state.has('Cane of Somaria', player))
|
set_rule(world.get_entrance('TR Final Abyss Ledge Path', player), lambda state: state.has('Cane of Somaria', player))
|
||||||
set_rule(world.get_location('Turtle Rock - Eye Bridge - Bottom Left', player), lambda state: state.has('Cane of Byrna', player) or state.has('Cape', player) or state.has('Mirror Shield', player))
|
set_rule(world.get_location('Turtle Rock - Eye Bridge - Bottom Left', player), lambda state: state.can_avoid_lasers(player))
|
||||||
set_rule(world.get_location('Turtle Rock - Eye Bridge - Bottom Right', player), lambda state: state.has('Cane of Byrna', player) or state.has('Cape', player) or state.has('Mirror Shield', player))
|
set_rule(world.get_location('Turtle Rock - Eye Bridge - Bottom Right', player), lambda state: state.can_avoid_lasers(player))
|
||||||
set_rule(world.get_location('Turtle Rock - Eye Bridge - Top Left', player), lambda state: state.has('Cane of Byrna', player) or state.has('Cape', player) or state.has('Mirror Shield', player))
|
set_rule(world.get_location('Turtle Rock - Eye Bridge - Top Left', player), lambda state: state.can_avoid_lasers(player))
|
||||||
set_rule(world.get_location('Turtle Rock - Eye Bridge - Top Right', player), lambda state: state.has('Cane of Byrna', player) or state.has('Cape', player) or state.has('Mirror Shield', player))
|
set_rule(world.get_location('Turtle Rock - Eye Bridge - Top Right', player), lambda state: state.can_avoid_lasers(player))
|
||||||
set_defeat_dungeon_boss_rule(world.get_location('Turtle Rock - Boss', player))
|
set_defeat_dungeon_boss_rule(world.get_location('Turtle Rock - Boss', player))
|
||||||
set_defeat_dungeon_boss_rule(world.get_location('Turtle Rock - Prize', player))
|
set_defeat_dungeon_boss_rule(world.get_location('Turtle Rock - Prize', player))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user