Stolao Posted May 31, 2013 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 337 Joined: 10/17/12 Last Seen: Thursday at 12:25 AM Share Posted May 31, 2013 (edited) Ok im wondering, why is it that bonus bHPrecovRate doesn't effect SM_RECOVERY, im assuming this is official but still seems odd to me.anyways on to my question, ive modded it so that the bonus does effect sm recovery like so val = 0; if( (skill=pc_checkskill(sd,SM_RECOVERY)) > 0 ) val += skill*5 + skill*status->max_hp/500; + val += val*sd->bonus.add_heal_rate/100;// [Stolao] sregen->hp = cap_value(val, 0, SHRT_MAX); however im not noticing a difference, is there something im messing up on?Edit:I did a test and added the line + val += 100; And it increased the heal by 100, soooo is there something wrong with sd->bonus.add_heal_rate? Edit2: Figured it out lol sd->hprecov_rate is what i needed not bonus.add_heal_rate Edited June 1, 2013 by Stolao Quote Link to comment Share on other sites More sharing options...
Stolao Posted June 1, 2013 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 337 Joined: 10/17/12 Last Seen: Thursday at 12:25 AM Author Share Posted June 1, 2013 (edited) Updated post Solved Edited June 1, 2013 by Stolao Quote Link to comment Share on other sites More sharing options...
Question
Stolao
Ok im wondering, why is it that bonus bHPrecovRate doesn't effect SM_RECOVERY, im assuming this is official but still seems odd to me.
anyways on to my question, ive modded it so that the bonus does effect sm recovery like so
however im not noticing a difference, is there something im messing up on?
Edit:
I did a test and added the line
And it increased the heal by 100, soooo is there something wrong with sd->bonus.add_heal_rate?
Edit2:
Figured it out lol
sd->hprecov_rate is what i needed not bonus.add_heal_rate
Edited by StolaoLink to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.