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:
		
							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"])
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue