Ranged Accuracy Fix

Post Reply
Zedingo
Developer
Posts: 85
Joined: Tue Aug 14, 2012 12:24 pm

Ranged Accuracy Fix

Post by Zedingo » Thu Sep 06, 2012 4:39 pm

Someone used an 8 bit integer in calculating hit rate, and that was causing some rollover problems when the acc formula says you should be getting a hitrate outside of 0-255

I sat down for a bit with a ShowDebug line showing me my acc, the mob's eva and level, and the calculated hitrate. On Burrower Worms in Zeruhn I had a 95% hit rate from RNG25 to RNG64.

This is a pretty simple patch, and it works fine on my server.
Attachments
ranged acc rollover fix.patch
(1012 Bytes) Downloaded 140 times
racc tests.xlsx
(11.91 KiB) Downloaded 148 times

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Ranged Accuracy Fix

Post by kjLotus » Sat Sep 08, 2012 8:12 pm

I'm pretty sure I committed this, and forgot to post about it here

link
Developer
Posts: 169
Joined: Fri Jul 27, 2012 3:27 pm

Re: Ranged Accuracy Fix

Post by link » Sat Sep 08, 2012 8:26 pm

you did kj, r1706

Post Reply