Bug - Fixed Combat Chance Calculation

lazy_fire

New member
Using r18890

Related to what I found here, I noticed the diminishing returns for combat/non-combat chance greater than 25 isn't being calculated the same as what the game shows in the current PVP mini. You need a full +/- 5% to gain an additional +/- 1% increase past 25%

At +25% and then using a 26lb Hound Dog (which adds +4%), mafia shows +26% while the PVP mini shows +25%.
At -25% and then using a 33lb Disgeist (which adds -4%), mafia shows -26% while the PVP mini shows -25%.


For a combat/non-combat chance greater than 25 the game is using 25 + truncate((combat rate - 25) / 5) to calculate the effective rate, rounding the fraction on the diminishing return toward zero instead of away from zero.
 
Top