Jump to content
  • 0

Cloaking SP Cost


prism

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   1
  • Joined:  04/28/12
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   1
  • Joined:  04/28/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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! 

Link to comment
Share on other sites

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.

×
×
  • Create New...