Items with percentage bonus attributes should recalculate the bonus value on level change #3575
Open
2 tasks done
Labels
good first issue
Issues that are easy to get started with
Before creating an issue, please ensure:
support matter (use https://otland.net/forums/support.16/ for support)
Steps to reproduce (include any configuration/script required to reproduce)
maxhitpointspercent
.Expected behaviour
A character with 1000 health, on equipping an item with
maxhitpointspercent
attribute and a value of105
(+5% bonus hitpoints) will have 1050 health (the value50
will be put into varStats for this slot item). Once your character levels up (ex. a Knight gains 25 hitpoints per level) now you have 1025 hitpoints by default. The value insidevarStats
should be updated from50
to76
(rounded down from76.25
) for a total hitpoints value of1076
.Actual behaviour
The value inside of
varStats
when leveling up in the above example is still50
because the +5% bonus hitpoints from the equipped item does not get recalculated on level up.Final thoughts
maxmanapointspercent
attribute as well, or really, any attributes that use percentages.The text was updated successfully, but these errors were encountered: