[0.9.159-PUBLIC#7003] Akane's Painslut Bug

Theron

Well-Known Member
Nov 8, 2018
4,395
1,646
46
Code:
(c += Math.round((t.HPMax() - t.HP()) / t.HPMax() * 5 * t.level))
This is the Javascript code
Code:
((HPMax - HP)/HPMax) * 5 * player level)
This was the Flash code. Note the different parenthesis placement.
The Javascript version gives a flat, very small bonus to Defense regardless of HP instead of scaling.