Class ShieldData
- Namespace
- TDMaker.Unity.Authoring
- Assembly
- TDMaker.Unity.dll
A damage-absorbing shield carried by a status effect, baked into ShieldDef.
public sealed class ShieldData
- Inheritance
-
ShieldData
- Inherited Members
Constructors
ShieldData()
public ShieldData()
Fields
amount
Flat capacity.
[Min(0)]
public float amount
Field Value
channels
Damage kinds absorbed (after armor and resistance).
public DamageMask channels
Field Value
enabled
Whether the effect grants a shield.
public bool enabled
Field Value
maximumHealthShare
Additional capacity as a share of the recipient's maximum health.
[Range(0, 1)]
public float maximumHealthShare
Field Value
refillOnRefresh
Re-applying the effect at equal rank refills the shield (otherwise remaining capacity is kept).
public bool refillOnRefresh
Field Value
Methods
ToDef()
Bakes the shield, or null when disabled.
public ShieldDef ToDef()