2009-11-22, 11:27 PM
This is assuming that both f(l) and g(l, k) are both ints, right?
That's actually a plausible theory. Integer division automatically floors the result. And if they use integer percentages for skill damage (which I think they do), it would end up using integer division.
And if it was to do something like l*frand(), where frand returns a random floating point value in damage range, the result could turn out to be odd even if l is 2, if frand is 1.5 or something.
Why they would switch from floats to ints arbitrarily like that, though, is beyond me.
That's actually a plausible theory. Integer division automatically floors the result. And if they use integer percentages for skill damage (which I think they do), it would end up using integer division.
And if it was to do something like l*frand(), where frand returns a random floating point value in damage range, the result could turn out to be odd even if l is 2, if frand is 1.5 or something.
Why they would switch from floats to ints arbitrarily like that, though, is beyond me.

