Jump to content
  • 0

Cloaking SP Cost


Question

3 answers to this question

Recommended Posts

Posted

Thanks for the response. I did however find the answer.

 

 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.

Posted

How can I adjust the cost per second of this? I can't find it anywhere in the source.

I believe that the per second usage is the same as initial cast, just keeps reoccurring every second as a cost.

135,0,0,15,0,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //AS_CLOAKING

The 15 in there is the cost of SP. 

Posted

Thanks for the response. I did however find the answer.

 

 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.

Ah very nice! 

  • Love 1

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