TUNIC: Fix for incorrect Zig 3 ER rule (#2849)

* Fix for incorrect ER rule in zig 3

* Add nmg logic to this same connection
This commit is contained in:
Scipio Wright 2024-02-25 16:27:19 -05:00 committed by GitHub
parent 8f7b0ee489
commit 46fc8df36e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -502,9 +502,13 @@ def set_er_region_rules(world: "TunicWorld", ability_unlocks: Dict[str, int], re
rule=lambda state: state.has(laurels, player)
or (has_sword(state, player) and has_ability(state, player, prayer, options, ability_unlocks)))
# unrestricted: use ladder storage to get to the front, get hit by one of the many enemies
# nmg: can ice grapple on the voidlings to the double admin fight, still need to pray at the fuse
regions["Rooted Ziggurat Lower Back"].connect(
connecting_region=regions["Rooted Ziggurat Lower Front"],
rule=lambda state: state.has(laurels, player) or can_ladder_storage(state, player, options))
rule=lambda state: ((state.has(laurels, player) or
has_ice_grapple_logic(True, state, player, options, ability_unlocks)) and
has_ability(state, player, prayer, options, ability_unlocks)
and has_sword(state, player)) or can_ladder_storage(state, player, options))
regions["Rooted Ziggurat Lower Back"].connect(
connecting_region=regions["Rooted Ziggurat Portal Room Entrance"],