mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-09-16 03:58:36 -07:00
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 <[email protected]> --------- Co-authored-by: Scipio Wright <[email protected]>
This commit is contained in:
co-authored by
Scipio Wright
parent
f52d65a141
commit
f4072833f3
@@ -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"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user