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

float

channels

Damage kinds absorbed (after armor and resistance).

public DamageMask channels

Field Value

DamageMask

enabled

Whether the effect grants a shield.

public bool enabled

Field Value

bool

maximumHealthShare

Additional capacity as a share of the recipient's maximum health.

[Range(0, 1)]
public float maximumHealthShare

Field Value

float

refillOnRefresh

Re-applying the effect at equal rank refills the shield (otherwise remaining capacity is kept).

public bool refillOnRefresh

Field Value

bool

Methods

ToDef()

Bakes the shield, or null when disabled.

public ShieldDef ToDef()

Returns

ShieldDef