Damage Taken Calculator

Work in progress. The goal is to simulate auto-pet potion usage. Based on damage formulas in Nise's Formula Compilation. Source can be found on Github geospiza-fortis/ml-damage-taken.

Plots

30003050310031500100200300
histogram of weapon damage taken (n=10000)
350035503600365037000100200
histogram of magic damage taken (n=10000)

Character

job
level
hp
weapon defense
magic defense
ability points 735
str
dex
luk
int
avoidability 12

Mob

level121
weapon attack605
magic attack685
weapon defense740
magic defense870
accuracy215
avoidability41
knockback9000

Calculations

avoidability12
physical dodge0.012
physical hit0.800
magic dodge-18.796
magic hit0.800
pdd494
weapon damage (min)3001.357
weapon damage (max)3184.369
magic damage (min)3466.785
magic damage (max)3701.398