Class ReflectionData

Namespace
TDMaker.Unity.Authoring
Assembly
TDMaker.Unity.dll

Returns a share of the health actually lost by this unit to its attacker as a single hit, baked into ReflectionDef. Shield absorption and overkill do not count; reflected hits never reflect again or steal life.

public sealed class ReflectionData
Inheritance
ReflectionData
Inherited Members

Constructors

ReflectionData()

public ReflectionData()

Fields

color

Feedback colour.

public Color color

Field Value

Color

enabled

Whether the unit reflects damage.

public bool enabled

Field Value

bool

id

Event key (also selects the feedback colour in the view).

public string id

Field Value

string

kind

Defense channel of the returned hit.

public DamageKind kind

Field Value

DamageKind

magicalPierce

Magical reduction ignored by the returned hit.

[Range(0, 1)]
public float magicalPierce

Field Value

float

physicalPierce

Physical reduction ignored by the returned hit.

[Range(0, 1)]
public float physicalPierce

Field Value

float

share

Share of actual health loss returned (rounded up).

[Range(0, 1)]
public float share

Field Value

float

Properties

Id

The resolved event key.

public string Id { get; }

Property Value

string

Methods

ToDef()

Bakes the reflection, or null when disabled.

public ReflectionDef ToDef()

Returns

ReflectionDef