That was a lucky guess on my part.meth962 wrote:
Prokion way:
(((agility << 3 - agility) * 0x66666667) >> 33) + 8
which if we get rid of compiler functions like shifting and the hex numbers, it would be...
(((agility * 8 - agility) * 1717986919) / 8589934592) + 8
Reduces to:
AGL * 1.4 + 8
I wasn't sure what the arrows meant, so it was difficult to understand.
I'm guessing that they are the left bit-shift and right bit-shift; i.e.
x << n is shorthand for x * 2^n
and
x >> n is shorthand for x / (2^n) then?