Class ReviveDef

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

Finite same-identity recovery, independent of death-successor production and ordinary hero respawning.

public sealed class ReviveDef
Inheritance
ReviveDef
Inherited Members

Constructors

ReviveDef(int, float, float, float, bool, bool, bool)

Creates a finite return policy. Exhaustion is terminal, including for heroes using this explicit policy.

public ReviveDef(int returns = 1, float downDelay = 0, float riseDuration = 0, float returnShare = 0.5, bool ignoreDamageWhileRising = true, bool excludeWhileRising = true, bool clearEffects = true)

Parameters

returns int
downDelay float
riseDuration float
returnShare float
ignoreDamageWhileRising bool
excludeWhileRising bool
clearEffects bool

Properties

ClearEffects

Remove attached effects when entering the down state.

public bool ClearEffects { get; }

Property Value

bool

DownDelay

Noncombat time spent down.

public float DownDelay { get; }

Property Value

float

ExcludeWhileRising

Exclude from attack acquisition while rising, independently from damage immunity.

public bool ExcludeWhileRising { get; }

Property Value

bool

IgnoreDamageWhileRising

Ignore incoming damage while rising.

public bool IgnoreDamageWhileRising { get; }

Property Value

bool

ReturnShare

Maximum-health share restored on beginning to rise.

public float ReturnShare { get; }

Property Value

float

Returns

Maximum same-identity returns over this entity's lifetime.

public int Returns { get; }

Property Value

int

RiseDuration

Preparation after restoring health, before acting.

public float RiseDuration { get; }

Property Value

float