devilutionX
devilutionX copied to clipboard
Bugfix: Items over 255 durability
Some items with the of Structure
power can exceed 255 durability, causing the item to drop to a low durability when regenerated. This clamps the bonus given from the affix so that it doesn't exceed 255.
Should it not be clamped to 254?
Hm, maybe yes, if you assume #5772 won't be merged any time soon. I was kinda hoping it was close to ready, though I can't say I know what we should do about Oil of Permanence.
approved, when merge?
approved, when merge?
See previous comments, or the one I just made.