Class ShieldDef

Namespace
TDMaker.Core.Defs
Assembly
TDMaker.Core.dll

A finite damage shield, stored separately for each accepted effect binding.

public sealed class ShieldDef
Inheritance
ShieldDef
Inherited Members

Constructors

ShieldDef(float, float, DamageMask, bool)

Creates shielding; separate bindings absorb in attachment order and removal discards unused capacity.

public ShieldDef(float amount = 0, float maximumHealthShare = 0, DamageMask channels = DamageMask.All, bool refillOnRefresh = false)

Parameters

amount float
maximumHealthShare float
channels DamageMask
refillOnRefresh bool

Properties

Amount

Initial flat capacity.

public float Amount { get; }

Property Value

float

Channels

Damage channels absorbed after mitigation; execution and despawn bypass shields.

public DamageMask Channels { get; }

Property Value

DamageMask

MaximumHealthShare

Additional capacity from maximum health, snapshotted when accepted.

public float MaximumHealthShare { get; }

Property Value

float

RefillOnRefresh

Refills the existing shield on an equal-rank lifetime refresh; otherwise remaining capacity is preserved.

public bool RefillOnRefresh { get; }

Property Value

bool