Jump to content
  • 0

cap asura strike sp damage


Lord Ganja

Question


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

What's the latest src mod here to set a max sp for asura damage?

If the character exceeds 7k sp. The output damage will only be for 7k sp.

 

What should I edit in 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;

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

case MO_EXTREMITYFIST:

if(sstatus->sp <= 7000)
skillratio += 100 * (7 + sstatus->sp / 10);
else
skillratio += 100 * (7 + 7000 / 10);

skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection
break;

You can also comment out the last skill ratio statement because you have already set the max sp in the computation

Edited by jezznar
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

case MO_EXTREMITYFIST:

if(sstatus->sp <= 7000)
skillratio += 100 * (7 + sstatus->sp / 10);
else
skillratio += 100 * (7 + 7000 / 10);

skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection
break;

You can also comment out the last skill ratio statement because you have already set the max sp in the computation

 

Thank you! :)

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