Skip to content

Commit

Permalink
TUNIC: Add Shop indirect condition (#4160)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

---------

Co-authored-by: Scipio Wright <[email protected]>
  • Loading branch information
Mysteryem and ScipioWright authored Nov 8, 2024
1 parent f52d65a commit f407283
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worlds/tunic/er_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down

0 comments on commit f407283

Please sign in to comment.