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
damageGrace
Seconds without taking damage before recovery starts.
[Min(0)]
public float damageGrace
Field Value
enabled
Whether the unit recovers health.
public bool enabled
Field Value
idleOnly
Only recover while idle (not moving or fighting). Enemies are never idle, so turn this off for them.
public bool idleOnly
Field Value
interval
Seconds between ticks.
[Min(0.01)]
public float interval
Field Value
Methods
ToDef()
Bakes the recovery, or null when disabled.
public RecoveryDef ToDef()