Asura SP Cap

koko24

New member
Messages
81
Points
0
Github
koko24
Emulator
Hello 

i want to limit the extremityfist SP Damage to 6k sp

Code:
				case MO_EXTREMITYFIST:	#ifndef RENEWAL					{						//Overflow check. [Skotlex]						unsigned int ratio = skillratio + 100*(8 + st->sp/10);						//You'd need something like 6K SP to reach this max, so should be fine for most purposes.						if (ratio > 60000) ratio = 60000; //We leave some room here in case skillratio gets further increased.						skillratio = (unsigned short)ratio;					}
 
Actually this will be right:

  unsigned int ratio = skillratio + 100*(8 + st->sp/10); //You'd need something like 6K SP to reach this max, so should be fine for most purposes. if (ratio > 60000) ratio = 60000; //We leave some room here in case skillratio gets further increased.


means if you have 6k sp the formula will be:

Code:
skillratio + 100*(8+6000/10) = skillratio + 100*608 = skillratio + 60800
 
Last edited by a moderator:
if (ratio > 60000) ratio = 60000
if i want to lower the cap this is the only thing i need to modify right?

if (ratio > 55000) ratio = 55000
like this? Thank you guys for answering

 
unsigned int ratio = skillratio + 100*(8 + st->sp/10);

can i change this on into

unsigned int ratio = skillratio + 70*(8 + st->sp/10); ?

 
That line of code only applies to pre-re, iirc Asura has a different calculation on Renewal.

In any case, if you see the code, its enclosed within #ifndef RENEWAL and #endif. This means it only applies to Not Renewal

 
Back
Top