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

bool

flatHealing

Flat health restored per qualifying hit.

[Min(0)]
public float flatHealing

Field Value

float

healCreditOwner

Heals the credited hero instead of the immediate source (for example a hero's trap or summon).

public bool healCreditOwner

Field Value

bool

healthShare

Share of actual health loss restored.

[Range(0, 1)]
public float healthShare

Field Value

float

id

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

public string id

Field Value

string

includePeriodic

Also steals from periodic (damage over time) ticks of effects carried by this packet.

public bool includePeriodic

Field Value

bool

Properties

Id

The resolved event key.

public string Id { get; }

Property Value

string

Methods

ToDef()

Bakes the life steal, or null when disabled.

public LifeStealDef ToDef()

Returns

LifeStealDef