The backstab formulas are wrong, Rogean is working on more accurate ones at the moment. The current ones pretty much under estimate backstab damage across the board, I just rewrote the formula for under 25 because part of it becomes increasingly negative for every 3 levels under 25 you become.
Let me explain what's happening with the new code with the * 100 / 100 later thing.
skillmodifier = (bs_skill*100)/25;
this makes our skill modifier for say 90 skill 360, in the old code we used floats for accuracy but we don't like to mix float and int math where we can avoid it. The old mod for a 90 skill would have been 3.6 but if we tried to simply switch that over we would lose the accuracy of using floats.. but when working with larger numbers you don't lose that accuracy when dividing.
Essentially we don't lose a .6 in the calculation doing it this way and don't have to convert from ints to floats to ints again.
I may not of explained it as well as I could have but meh.
|