The formula for potential stat gain is bugged
issueid=138 04-29-2010 12: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)

02-16-2012 06:10 PM
jt jt is offline

+ Reply