You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They take a percent argument and then modify the stat by currentstat * percent / 100. This is no good!!!!
The proper behavior should be modifying the stat by basestat * percent / 100. You can see an example of this in the following runescript
Here, stat_heal(hitpoints,0,100) should heal the player to full hitpoints. However in our current engine, if we run the following debugproc while at 99/99 hp,
the player is left at 2/99 hitpoints rather than 99/99 hitpoints.
All these engine commands needs to be updated, and then all calls in runescript that pass in a percent parameter need to be updated to match the new engine behavior
So, in short:
Figure out if there are more than these 4 commands where this problem exists
Update these commands to use base_stat rather than current_stat when multiplying by percentage
Sort through all calls to these commands in runescript and check if they need updated to match new behavior
The text was updated successfully, but these errors were encountered:
Might also consider reworking this logic inside STAT_HEAL and move it into Player.changeStat or into runescript (think there was some discussion around if they could clear heropoints from runescript).
The following commands
stat_sub
stat_heal
npc_statsub
npc_statheal
All do something along the lines of
They take a
percent
argument and then modify the stat bycurrentstat * percent / 100
. This is no good!!!!The proper behavior should be modifying the stat by
basestat * percent / 100
. You can see an example of this in the following runescriptHere,
stat_heal(hitpoints,0,100)
should heal the player to full hitpoints. However in our current engine, if we run the following debugproc while at 99/99 hp,the player is left at 2/99 hitpoints rather than 99/99 hitpoints.
All these engine commands needs to be updated, and then all calls in runescript that pass in a
percent
parameter need to be updated to match the new engine behaviorSo, in short:
base_stat
rather thancurrent_stat
when multiplying bypercentage
The text was updated successfully, but these errors were encountered: