DamageCalculator

An object that performs specific damage calculations

Functions

Link copied to clipboard

Calculates the damage reduction.

Link copied to clipboard

Calculates the Actual Effective Health (EHP)

Link copied to clipboard

Calculates the Light Effective Health (LEHP)

Link copied to clipboard
fun calculateMagicDamage(base: Number, scaling: Float, stats: Statistics): Float

Calculates magic damage that will be dealt

Link copied to clipboard

Calculates default non-magic damage that will be dealt

Link copied to clipboard

Calculates the damage that the target will receive

Link copied to clipboard

Calculates true damage that will be received