TUNIC: Update logic for chest in fortress dark area (#4691)

* Update logic for beneath the vault chest

* use helper method instead

so that it checks the lanternless option
This commit is contained in:
Silent
2025-03-05 18:18:27 -05:00
committed by GitHub
parent 0eb6150e95
commit e00467c2a2
2 changed files with 4 additions and 7 deletions

View File

@@ -328,7 +328,8 @@ def set_location_rules(world: "TunicWorld") -> None:
# Beneath the Vault
set_rule(world.get_location("Beneath the Fortress - Bridge"),
lambda state: has_melee(state, player) or state.has_any((laurels, fire_wand, ice_dagger, gun), player))
lambda state: has_lantern(state, world) and
(has_melee(state, player) or state.has_any((laurels, fire_wand, ice_dagger, gun), player)))
set_rule(world.get_location("Beneath the Fortress - Obscured Behind Waterfall"),
lambda state: has_melee(state, player) and has_lantern(state, world))