Class CombatModifierData
- Namespace
- TDMaker.Unity.Authoring
- Assembly
- TDMaker.Unity.dll
Reversible combat changes carried by a status effect or passive, baked into CombatModifierDef.
public sealed class CombatModifierData
- Inheritance
-
CombatModifierData
- Inherited Members
Constructors
CombatModifierData()
public CombatModifierData()
Fields
disableAttacks
Prevents attacks and ability actions without stopping movement (for example a tower jam).
public bool disableAttacks
Field Value
ignoreBlocking
Cannot be blocked by soldiers; existing blockers are released.
public bool ignoreBlocking
Field Value
rangeScale
Multiplier for attack ranges (towers, soldiers, heroes, enemies); area sizes are not scaled.
[Min(0)]
public float rangeScale
Field Value
untargetable
Cannot be selected by attacks (effects keep their own eligibility).
public bool untargetable
Field Value
Properties
IsIdentity
Whether the data changes nothing.
public bool IsIdentity { get; }
Property Value
Methods
ToDef()
Bakes the modifier, or null when it is the identity.
public CombatModifierDef ToDef()