The Level Correction function
The Level Correction function is a function which modifies your (r)attack / monster defense ratio beforee passing them to pDIF function.
Let's say you have 400 attack/ ranged attack and the monster have 400 defense. So your (r)atk/def ratio is 1.
If you the monster has a higher level than you, then level corrected ratio is needed before calculating the pDIF.
Otherwise, when fighting EM monster or lower, your atk/def ratio will be left as is before plugging them into the pDIF function.(In other words, level correction value is 0)
For this example, Let's say you are fighting level 81 monster and your own character is a level 75 character.
Let Ratio as the value of your (r)atk divided by monster defense
Ratio = your (r)atk/monster defense
Melee cRatio = Ratio - 0.050 x level difference
Ranged cRatio = Ratio - 0.025 x level difference
So after the level correction, your melee attack ratio is 0.7 and your ranged attack ratio is 0.85
The min and max value of pDIF is the lower bound and upper bound of damage fluctuation.
pDIF
pDIF is the attack/defense function taking your (level corrected) Attack and Defense ratio and output a randomized number in certain value range.
- Melee and Ranged pDIF have different formulas :
Melee Attack
- max pDIF have the formulas :
Ratio Range Function Value 0 ≤ cRatio < 6/12 fMax(cRatio) = 0.4 + 6/5 x cRatio 6/12 ≤ cRatio ≤ 10/12 fMax(cRatio) = 1 10/12 < cRatio ≤ 24/12 fMax(cRatio) = 1 + 6/5 x (cRatio - 10/12)
- and Min pDIF have the formulas :
Ratio Range Function Value 0 ≤ cRatio < 15/12 fMin(cRatio) = 6/5 x (cRatio - 5/12)
if fMin < 0 → fMin = 015/12 ≤ cRatio ≤ 18/12 fMin(cRatio) = 1 18/12 < cRatio ≤ 24/12 fMin(cRatio) = 1 + 6/5 x (cRatio - 18/12)
- When cRatio exceeds 2.0, cRatio is 2.0 (capped for melee)
- Melee Critical Hit
- When critical hit occurs, your pDIF will be raised by 1 and the max pDIF cap is 3.0 instead of 2.4
- Examples :
- When your pDIF is 0.4 and you score a critical hit, your pDIF is raised to 1.4
- When your pDIF is 2.3 and you score a critical hit, your pDIF is raised to 3.0
- When your pDIF is -0.4 and you score a critical hit, your pDIF is raised to 0.6, but your normal attack will have pDIF=0
Ranged Attack
Ratio Range Function Value 0 ≤ cRatio < 0.9 fMax(cRatio) = 10/9 x cRatio 0.9 ≤ cRatio ≤ 1.1 fMax(cRatio) = 1 1.1 < cRatio ≤ 3.0 fMax(cRatio) = 1.1 + (cRatio - 1.1)
Ratio Range Function Value 0 ≤ cRatio < 0.9 fMin(cRatio) = cRatio 0.9 ≤ cRatio ≤ 1.1 fMin(cRatio) = 1 1.1 < cRatio ≤ 3.0 fMin(cRatio) = 1 + 20/19 x (cRatio - 1.1)
- When cRatio exceeds 3.0, cRatio is 3.0 (capped for ranged)
- Ranged Critical Hit