Bug fixes for pottery lottery changes

This commit is contained in:
aerinon
2022-01-24 16:04:16 -07:00
parent 8d99ccafc5
commit da89ab1006
8 changed files with 33 additions and 8 deletions

View File

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