Add dash range limit to dash spell and system

Introduces a maximum dash range to the dash system and spell effect, clamping the dash target if it exceeds the allowed distance. Updates configuration fields and prototype YAML to support the new range parameter.
This commit is contained in:
Ed
2025-06-19 12:47:46 +03:00
parent f4dd46cded
commit 63a1d60c6a
3 changed files with 29 additions and 6 deletions

View File

@@ -9,14 +9,15 @@
- type: CP14MagicEffect
effects:
- !type:CP14SpellDash
dashSpeed: 20
speed: 20
range: 3.5
- type: Action
icon:
sprite: _CP14/Actions/Spells/physical.rsi
state: dash
- type: TargetAction
checkCanAccess: false
range: 3.5
range: 10 #Thats not dash range, thats interaction clickable zone range
- type: WorldTargetAction
event: !type:CP14WorldTargetActionEvent
cooldown: 5