Class ChainAttackData
- Namespace
- TDMaker.Unity.Authoring
- Assembly
- TDMaker.Unity.dll
A chained attack that jumps from target to nearby target without revisiting, baked into ChainAttackDef. Use it as an ability action (useChain).
public sealed class ChainAttackData
- Inheritance
-
ChainAttackData
- Inherited Members
Constructors
ChainAttackData()
public ChainAttackData()
Fields
cancelWithSource
Stops the remaining links if the actor dies, is stunned or disarmed.
public bool cancelWithSource
Field Value
chance
Probability per activation; a failed roll still consumes the cooldown.
[Range(0, 1)]
public float chance
Field Value
color
Arc colour.
public Color color
Field Value
- Color
damage
Damage at each link (may carry effects and an impact payload).
public DamageData damage
Field Value
id
Event key (also selects the arc colour in the view).
public string id
Field Value
linkDelay
Game seconds between links.
[Min(0)]
public float linkDelay
Field Value
linkRange
Range from one victim to the next.
[Min(0)]
public float linkRange
Field Value
linkScale
Damage multiplier applied after each link (0.8 = each jump deals 20% less).
[Min(0)]
public float linkScale
Field Value
maxTargets
Maximum distinct victims, including the first.
[Min(1)]
public int maxTargets
Field Value
range
Range of the first link from the actor.
[Min(0)]
public float range
Field Value
targets
Extra victim eligibility.
public MechanicTargetData targets
Field Value
targetsFlying
Allows flying victims.
public bool targetsFlying
Field Value
targetsGround
Allows ground victims.
public bool targetsGround
Field Value
vfx
Optional pooled VFX spawned on each victim.
public GameObject vfx
Field Value
- GameObject
Properties
Id
The resolved event key.
public string Id { get; }
Property Value
Methods
ToDef()
Bakes the chain definition.
public ChainAttackDef ToDef()