Fixes a G3 reported unfixable exploit.
Attribute Drains Can Cause Scores to 'Wrap Around' To Max Values
This is another fairly well-known exploit, typically abused with the Rod of Terror and the Ring of Human Influence. The Rod of Terror will occasionally drain charisma from its wielder, eventually taking charisma to zero and killing the character. However, while wearing the Ring of Human Influence, the actual charisma will continue to decline to zero but will not kill the character as the ring keeps their working charisma at 18. If the Rod drains more charisma, the actual score will 'wrap around' from 0 to 25. The Ring can then be removed, leaving the character with an artificially inflated, god-like charisma score. This is hardcoded and can not be fixed.
Also should fix the lore wrapping issue and thieving skill wrapping issues reported in the Wish List.
Effect opcodes affected:
-#6 (0x006) Stat: Charisma Modifier [6]
-#10 (0x00A) Stat: Constitution Modifier [10]
-#15 (0x00F) Stat: Dexterity Modifier [15]
-#19 (0x013) Stat: Intelligence Modifier [19]
-#21 (0x015) Stat: Lore Modifier [21]
-#33 (0x021) Stat: Save vs. Death Modifier [33]
-#34 (0x022) Stat: Save vs. Wands Modifier [34]
-#35 (0x023) Stat: Save vs. Petrification/Polymorph Modifier [35]
-#36 (0x024) Stat: Save vs. Breath Weapons Modifier [36]
-#37 (0x025) Stat: Save vs. Spells Modifier [37]
-#44 (0x02C) Stat: Strength Modifier [44]
-#49 (0x031) Stat: Wisdom Modifier [49]
-#59 (0x03B) Stat: Stealth Modifier [59]
-#90 (0x05A) Stat: Open Locks Modifier [90]
-#91 (0x05B) Stat: Find Traps Modifier [91]
-#92 (0x05C) Stat: Pick Pockets Modifier [92]
-#93 (0x05D) Stat: Fatigue Modifier [93]
-#94 (0x05E) Stat: Drunkenness Modifier [94]
-#95 (0x05F) Stat: Tracking Skill Modifier [95]
-#96 (0x060) Stat: Level Change [96]
-#97 (0x061) Stat: Strength-Bonus Modifier [97]
-#106 (0x06A) Stat: Morale Break Modifier [106]
-#108 (0x06C) Stat: Reputation [108]
Edited by Ascension64, 25 January 2012 - 02:53 PM.