CalculationPhase ​
Inherits: RefCounted
What one calculation phase produced (damage done, damage taken, healing done or healing taken), before the calling calculation copies it into a DamageResult / HealingResult: the final number, the triggers that fired and the modifiers that changed the number, in the order they ran. See docs/systems/entity-stats.md, section 17.
Variables ​
float | value | 0.0 |
Array[TriggerRecord] | triggers | [] |
Array[ModifierStep] | steps | [] |
TriggerRecord | avoid | null |
Methods ​
bool | was_avoided() |
Array[String] | tags() |
Variable descriptions ​
float value = 0.0 ​
The number at the end of the phase
Array[TriggerRecord] triggers = [] ​
Triggers that fired (critical strike, dodge, block ...)
Array[ModifierStep] steps = [] ​
Modifiers that changed the number
TriggerRecord avoid = null ​
The avoid trigger that ended the phase (dodge, parry), or null. Only damage-taken phases can be avoided
Method descriptions ​
bool was_avoided() ​
Did the phase end in an avoidance (a dodge, a parry, a block)?
Array[String] tags() ​
The tags of every trigger that fired