Class RecoveryData

Namespace
TDMaker.Unity.Authoring
Assembly
TDMaker.Unity.dll

Health recovery, baked into RecoveryDef.

public sealed class RecoveryData
Inheritance
RecoveryData
Inherited Members

Constructors

RecoveryData()

public RecoveryData()

Fields

amount

Health restored per tick.

[Min(0)]
public float amount

Field Value

float

damageGrace

Seconds without taking damage before recovery starts.

[Min(0)]
public float damageGrace

Field Value

float

enabled

Whether the unit recovers health.

public bool enabled

Field Value

bool

idleOnly

Only recover while idle (not moving or fighting). Enemies are never idle, so turn this off for them.

public bool idleOnly

Field Value

bool

interval

Seconds between ticks.

[Min(0.01)]
public float interval

Field Value

float

Methods

ToDef()

Bakes the recovery, or null when disabled.

public RecoveryDef ToDef()

Returns

RecoveryDef