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
id
Event key (also selects the feedback colour in the view).
public string id
Field Value
kind
Defense channel of the returned hit.
public DamageKind kind
Field Value
magicalPierce
Magical reduction ignored by the returned hit.
[Range(0, 1)]
public float magicalPierce
Field Value
physicalPierce
Physical reduction ignored by the returned hit.
[Range(0, 1)]
public float physicalPierce
Field Value
share
Share of actual health loss returned (rounded up).
[Range(0, 1)]
public float share
Field Value
Properties
Id
The resolved event key.
public string Id { get; }
Property Value
Methods
ToDef()
Bakes the reflection, or null when disabled.
public ReflectionDef ToDef()