TUNIC: Add Shop indirect condition (#4160)

* TUNIC: Add Shop indirect condition

The `Overworld -> Cube Cave Entrance Region` Entrance checks
`can_shop()` which checks for being able to reach the "Shop" Region, so
the Entrance requires an indirect condition of reaching the "Shop"
Region.

* Rename entrance variable to cube_entrance

Co-authored-by: Scipio Wright <scipiowright@gmail.com>

---------

Co-authored-by: Scipio Wright <scipiowright@gmail.com>
This commit is contained in:
Mysteryem 2024-11-08 17:57:11 +00:00 committed by GitHub
parent f52d65a141
commit f4072833f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -344,9 +344,10 @@ def set_er_region_rules(world: "TunicWorld", regions: Dict[str, Region], portal_
connecting_region=regions["Overworld"],
rule=lambda state: state.has_any({grapple, laurels}, player))
regions["Overworld"].connect(
cube_entrance = regions["Overworld"].connect(
connecting_region=regions["Cube Cave Entrance Region"],
rule=lambda state: state.has(gun, player) or can_shop(state, world))
world.multiworld.register_indirect_condition(regions["Shop"], cube_entrance)
regions["Cube Cave Entrance Region"].connect(
connecting_region=regions["Overworld"])