General Formula
The damage is calculated as follows:
Damage = ( Attack x Effectiveness x Difficulty - Defense ) x Multiplier x (200% - Resistance) x Attack Bonus
Most of the multiplications use integer arithmetic only; after each multiplication, all fractions are discarded. That is, you first multiply Attack by…
