Jump to content
  • 0

SM_Recovery and bonus bHPrecovRate


Stolao

Question


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

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 by Stolao
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Updated post

 

Solved

Edited by Stolao
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...