Class LifeStealData
- Namespace
- TDMaker.Unity.Authoring
- Assembly
- TDMaker.Unity.dll
Heals the attacker (or the hero credited with the hit) by a share of the health this packet actually removed, baked into LifeStealDef.
public sealed class LifeStealData
- Inheritance
-
LifeStealData
- Inherited Members
Constructors
LifeStealData()
public LifeStealData()
Fields
color
Feedback colour.
public Color color
Field Value
- Color
enabled
Whether the packet steals life.
public bool enabled
Field Value
flatHealing
Flat health restored per qualifying hit.
[Min(0)]
public float flatHealing
Field Value
healCreditOwner
Heals the credited hero instead of the immediate source (for example a hero's trap or summon).
public bool healCreditOwner
Field Value
healthShare
Share of actual health loss restored.
[Range(0, 1)]
public float healthShare
Field Value
id
Event key (also selects the feedback colour in the view).
public string id
Field Value
includePeriodic
Also steals from periodic (damage over time) ticks of effects carried by this packet.
public bool includePeriodic
Field Value
Properties
Id
The resolved event key.
public string Id { get; }
Property Value
Methods
ToDef()
Bakes the life steal, or null when disabled.
public LifeStealDef ToDef()