Cloaking SP Cost/Renovatio Emperium Healing

prism

New member
Messages
69
Points
0
I want to modify the SP cost of cloaking if the level is 3. I want it to drain 10% of the user's maximum SP per second while cloaked.

Also, I want Renovatio to work on Emperiums but I only want it to heal 1% of it's HP every 4 seconds.

 
Last edited by a moderator:
I found how to change the SP cost. It's in status.c. Search for this:

case SC_MAXIMIZEPOWER:
case SC_CLOAKING:
if(!status->charge(bl, 0, 1))
break; //Not enough SP to continue.
sc_timer_next(sce->val2+tick, status->change_timer, bl->id, data);
return 0;


The 1 is the amount of SP drained per tick.

Note: changing this will affect Maximize Power as well so you'll need to separate them into different cases.

 
Back
Top