Skip to content

DamageTakenCalculation ​

Inherits: CalculationBase < RefCounted

Damage taken: the defender's triggers (dodge, block) and modifiers (armor, damage-taken bonuses) applied to the hit. A fired avoid trigger ends the phase with the outcome AVOIDED.

Methods ​

voidapply_to( stats_component: StatsComponent, result: DamageResult )

Method descriptions ​

void apply_to( stats_component: StatsComponent, result: DamageResult ) ​

Runs the defender's phase on result. The working value is result.taken: the caller sets it to what is left after redirection (the attacker's phase leaves it at done). Writes taken, records the triggers and steps, and marks the result AVOIDED when an avoid trigger fired (unless the hit cannot be avoided)