Skip to main content

Module damage

Module damage 

Source
Expand description

Damage calculation pipeline: base + coef * power, then crit, vers, armor, and multipliers.

Structs§

AttackTable
Ordered one-roll attack-table probabilities and landed-hit reductions.
DamageCalc
All inputs needed to compute a damage hit.
DamageResult
Result of a single damage calculation.

Constants§

WEAPON_POWER_COEFFICIENT
Converts weapon damage per second into attack power.

Functions§

armor_mitigation
Fraction of damage that bypasses armor (1 - armor / (armor + K)), in [0, 1].
pet_swing_ap
Attack-power coefficient for a normalized pet auto-attack swing.
pet_swing_power_coefficient
Returns the owner-power coefficient for a pet weapon swing.