The formula for potential stat gain is bugged
issueid=138 04-29-2010 01:34 AM
Senior Member
Number of reported issues by Twinge: 10
The formula for potential stat gain is bugged

The formula used when you might gain an extra stat point depending on what your current stat amount is (primarily used when eating corpses) is buggy. Due to the way the checks are set up, you'll have a 100% chance of gaining a stat when you're at 28 of that stat, but only a 55% chance at 22 of that stat or 25% at 27 of the stat.

IIRC, this is because there is a bit that is supposed to only be run for 30+ of a stat that is also being run for 21+ of the stat, and they overlap awkwardly.
Issue Details
Issue Number 138
Project ADOM (Ancient Domains Of Mystery)
Category Windows XP
Status Fixed
Priority 7
Affected Version ADOM 1.1.1
Fixed Version ADOM 1.2.0 pre 1
Milestone (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




04-29-2010 01:53 AM
Issue Changed by Twinge
  • Title changed from The fomrula for potential stat gain is bugged to The formula for potential stat gain is bugged

04-29-2010 10:05 PM
Issue Changed by Twinge
  • Priority changed from 6 to 7

02-16-2012 07:10 PM
Issue Changed by jt
  • Issue marked as addressed

02-16-2012 07:10 PM
Issue Changed by jt
  • Status changed from Unconfirmed to Fixed

09-23-2012 10:50 PM
Issue Changed by jt
  • Applicable version changed from Unknown to ADOM 1.1.1
  • Addressed version changed from ADOM 1.2.0 pre 4 to ADOM 1.2.0 pre 1

+ Reply