Jump to content
  • 0

cap asura strike sp damage


Question

Posted

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;

 

3 answers to this question

Recommended Posts

  • 1
Posted (edited)
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
Posted
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! :)

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...