TUNIC: Deal with the boxes blocking the entrance to Beneath the Vault

This commit is contained in:
Scipio Wright 2024-09-21 17:02:58 -04:00 committed by GitHub
parent 41ddb96b24
commit 69d3db21df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -762,7 +762,10 @@ def set_er_region_rules(world: "TunicWorld", regions: Dict[str, Region], portal_
regions["Beneath the Vault Ladder Exit"].connect( regions["Beneath the Vault Ladder Exit"].connect(
connecting_region=regions["Beneath the Vault Main"], connecting_region=regions["Beneath the Vault Main"],
rule=lambda state: has_ladder("Ladder to Beneath the Vault", state, world) rule=lambda state: has_ladder("Ladder to Beneath the Vault", state, world)
and has_lantern(state, world)) and has_lantern(state, world)
# there's some boxes in the way
and (has_stick(state, player) or state.has_any((gun, grapple, fire_wand), player)))
# on the reverse trip, you can lure an enemy over to break the boxes if needed
regions["Beneath the Vault Main"].connect( regions["Beneath the Vault Main"].connect(
connecting_region=regions["Beneath the Vault Ladder Exit"], connecting_region=regions["Beneath the Vault Ladder Exit"],
rule=lambda state: has_ladder("Ladder to Beneath the Vault", state, world)) rule=lambda state: has_ladder("Ladder to Beneath the Vault", state, world))

View File

@ -114,7 +114,9 @@ def set_region_rules(world: "TunicWorld") -> None:
or can_ladder_storage(state, world) or can_ladder_storage(state, world)
# using laurels or ls to get in is covered by the -> Eastern Vault Fortress rules # using laurels or ls to get in is covered by the -> Eastern Vault Fortress rules
world.get_entrance("Overworld -> Beneath the Vault").access_rule = \ world.get_entrance("Overworld -> Beneath the Vault").access_rule = \
lambda state: has_lantern(state, world) and has_ability(prayer, state, world) lambda state: (has_lantern(state, world) and has_ability(prayer, state, world)
# there's some boxes in the way
and (has_stick(state, player) or state.has_any((gun, grapple, fire_wand), player)))
world.get_entrance("Ruined Atoll -> Library").access_rule = \ world.get_entrance("Ruined Atoll -> Library").access_rule = \
lambda state: state.has_any({grapple, laurels}, player) and has_ability(prayer, state, world) lambda state: state.has_any({grapple, laurels}, player) and has_ability(prayer, state, world)
world.get_entrance("Overworld -> Quarry").access_rule = \ world.get_entrance("Overworld -> Quarry").access_rule = \