Jump to content
  • 0

How to make max limit sp for champion asura is 6k


Ace D Potgas

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   1
  • Joined:  08/04/12
  • Last Seen:  

Hi there,

 

I would like to ask your help on this topic. How to make the limit sp of champion/shura to be limit at 6k sp. That mean,player cannot get more than 6k sp. If they do, the damage of asura strike wont be increasing for more than 6k sp. Please help! thanks~

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

battle.c 

                case MO_EXTREMITYFIST:
                        skillratio += 100*(7 + sstatus->sp/10);
                        skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection
                        break;

change

skillratio += 100*(7 + sstatus->sp/10);

to

skillratio += 100*(7 + min(sstatus->sp,6000)/10);

ref: http://www.cplusplus.com/reference/algorithm/min/

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   1
  • Joined:  08/04/12
  • Last Seen:  

Thank you for your feedback. I will try to perform above modification and let you know if it work :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   1
  • Joined:  02/10/12
  • Last Seen:  

not working.. what version is this?

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...