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

bool

chance

Probability per activation; a failed roll still consumes the cooldown.

[Range(0, 1)]
public float chance

Field Value

float

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

DamageData

id

Event key (also selects the arc colour in the view).

public string id

Field Value

string

linkDelay

Game seconds between links.

[Min(0)]
public float linkDelay

Field Value

float

linkRange

Range from one victim to the next.

[Min(0)]
public float linkRange

Field Value

float

linkScale

Damage multiplier applied after each link (0.8 = each jump deals 20% less).

[Min(0)]
public float linkScale

Field Value

float

maxTargets

Maximum distinct victims, including the first.

[Min(1)]
public int maxTargets

Field Value

int

range

Range of the first link from the actor.

[Min(0)]
public float range

Field Value

float

targets

Extra victim eligibility.

public MechanicTargetData targets

Field Value

MechanicTargetData

targetsFlying

Allows flying victims.

public bool targetsFlying

Field Value

bool

targetsGround

Allows ground victims.

public bool targetsGround

Field Value

bool

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

string

Methods

ToDef()

Bakes the chain definition.

public ChainAttackDef ToDef()

Returns

ChainAttackDef