Calculate mitigated game damage with attack power, skill scaling, defense, penetration, resistance, and variance.
Flat subtracts effective defense directly, Ratio uses attack divided by attack plus defense, and Diminishing uses a configurable defense constant for smoother scaling.
Flat penetration is subtracted first, then percentage penetration reduces the remainder. Effective defense cannot fall below zero.
Resistance is clamped to a safe range and applied after physical defense mitigation, allowing positive resistance to reduce and negative resistance to amplify damage.
Variance creates a symmetrical random damage range around the average. For example, 10 percent produces a minimum at 90 percent and maximum at 110 percent.
No. The right formula depends on your desired pacing, stat ranges, and how strongly defense should scale. The breakdown helps you tune those relationships deliberately.