Bug fixes for pottery lottery changes
This commit is contained in:
10
Rules.py
10
Rules.py
@@ -735,9 +735,17 @@ def pot_rules(world, player):
|
||||
for l in world.get_region('Dark Lake Hylia Ledge Spike Cave', player).locations:
|
||||
if l.type == LocationType.Pot:
|
||||
add_rule(l, lambda state: state.world.can_take_damage or state.has('Hookshot', player))
|
||||
for l in world.get_region('Ice Hammer Block', player).locations:
|
||||
if l.type == LocationType.Pot:
|
||||
add_rule(l, lambda state: state.has('Hammer', player) and state.can_lift_rocks(player))
|
||||
for pot in ['Ice Antechamber Pot #3', 'Ice Antechamber Pot #4']:
|
||||
loc = world.get_location_unsafe(pot, player)
|
||||
if loc:
|
||||
set_rule(loc, lambda state: state.can_lift_rocks(player))
|
||||
loc = world.get_location_unsafe('Mire Spikes Pot #3', player)
|
||||
if loc:
|
||||
set_rule(loc, lambda state: (state.world.can_take_damage and state.has_hearts(player, 4)) or state.has('Cane of Byrna', player) or state.has('Cape', player))
|
||||
set_rule(loc, lambda state: (state.world.can_take_damage and state.has_hearts(player, 4))
|
||||
or state.has('Cane of Byrna', player) or state.has('Cape', player))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user