Lord Ganja Posted August 17, 2015 Posted August 17, 2015 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; Quote
1 Ninja Posted August 21, 2015 Posted August 21, 2015 (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 August 21, 2015 by jezznar 2 Quote
Lord Ganja Posted August 21, 2015 Author Posted August 21, 2015 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! Quote
Question
Lord Ganja
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?
3 answers 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.