Page 1 of 1

Possible Pent Calculation Bug

Posted: Sat Feb 18, 2017 3:25 am
by kevrlet
I was looking through the original V2 code to see how easy Lazy's suggested pent change would be to implement. I found that pent value is calculated with a divisor of 8, instead of 7 like the code shows.

The formula in the code is (v*v)/7 + 1. So pent 154 should give 3,389 EXP. Instead it gives 2965, which is what it would give if the formula were calculated out of order, or like this (v*v)/(7+1).


This may be intentional, of course, but I find it more than a little curious that the formula would intentionally be changed to exactly what it would be if a minor order of operations error were to occur.

Posted: Sat Feb 18, 2017 9:20 pm
by Lurker
IIRC a long time ago they made a change to the pents math.