calculateMagicDamage

fun calculateMagicDamage(base: Number, scaling: Float, stats: Statistics): Float(source)

Calculates magic damage that will be dealt

Return

calculated magic damage that will be dealt

Parameters

base

base magic damage value

scaling

intelligence damage scaling

stats

statistics that will be used for calculations.

Statistics that are used:

  1. Statistic.ABILITY_DAMAGE -> 0.01 multiplier

  2. Statistic.INTELLIGENCE -> 0.01 x scaling multiplier

  3. Statistic.DAMAGE_BOOST -> 0.01 multiplier