View Single Post
Old April 5, 2017, 05:58   #510
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,347
Donated: $40
Pete Mack is on a distinguished road
Reminder: lore.c, line 939 should be:
Code:
		chance2 = 12 + 83 * (chance - (race->ac * 2 / 3)) / chance;
		if (chance2 < 12) chance2 = 12;
For clarity, you may wish to use (100 - 17) instead of 83.

Remove all the other nonsense in computing the probability to get a hit.

Edit: As it stands, this is a real problem for Mages and Priests when figuring out what attack to use. The broken code significantly overestimates hit chance when chance is below 60%.

Last edited by Pete Mack; April 5, 2017 at 06:10.
Pete Mack is offline   Reply With Quote