Class TargetTraitsDef

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

Target and immunity traits, distinct from damage mitigation.

public sealed class TargetTraitsDef
Inheritance
TargetTraitsDef
Inherited Members

Constructors

TargetTraitsDef(ulong, DamageMask, bool, bool, bool, bool, bool)

Creates eligibility data.

public TargetTraitsDef(ulong tags = 0, DamageMask immunities = DamageMask.None, bool ignoreDamage = false, bool ignoreStun = false, bool lockSpeed = false, bool untargetable = false, bool blockImmune = false)

Parameters

tags ulong
immunities DamageMask
ignoreDamage bool
ignoreStun bool
lockSpeed bool
untargetable bool
blockImmune bool

Properties

BlockImmune

Cannot be blocked.

public bool BlockImmune { get; }

Property Value

bool

IgnoreDamage

Ignores all damage requests.

public bool IgnoreDamage { get; }

Property Value

bool

IgnoreStun

Ignores stun modifiers.

public bool IgnoreStun { get; }

Property Value

bool

Immunities

Immune damage channels, including true damage when selected.

public DamageMask Immunities { get; }

Property Value

DamageMask

LockSpeed

Ignores speed multipliers.

public bool LockSpeed { get; }

Property Value

bool

Tags

Author-defined eligibility bits.

public ulong Tags { get; }

Property Value

ulong

Untargetable

Cannot be selected for attacks.

public bool Untargetable { get; }

Property Value

bool