Jump to content
  • 0

Change formula SPD


Scofield

Question


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.03
  • Content Count:  265
  • Reputation:   11
  • Joined:  01/11/13
  • Last Seen:  

I would change the formula of the SPD,

Example: A character with 186 SPD has the movement of attack as if it had 191


Achei esso no status.c onde eu edito para obter resultado desejado?

 

// ----- ASPD CALCULATION -----
// Unlike other stats, ASPD rate modifiers from skills/SCs/items/etc are first all added together, then the final modifier is applied

    // Basic ASPD value
    i = status_base_amotion_pc(sd,status);
    status->amotion = cap_value(i,battle_config.max_aspd,2000);

    // Relative modifiers from passive skills
    if((skill=pc_checkskill(sd,SA_ADVANCEDBOOK))>0 && sd->status.weapon == W_BOOK)
        status->aspd_rate -= 5*skill;
    if((skill = pc_checkskill(sd,SG_DEVIL)) > 0 && !pc_nextjobexp(sd))
        status->aspd_rate -= 30*skill;
    if((skill=pc_checkskill(sd,GS_SINGLEACTION))>0 &&
        (sd->status.weapon >= W_REVOLVER && sd->status.weapon <= W_GRENADE))
        status->aspd_rate -= ((skill+1)/2) * 10;
    if(pc_isriding(sd))
        status->aspd_rate += 500-100*pc_checkskill(sd,KN_CAVALIERMASTERY);

    status->adelay = 2*status->amotion;
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.03
  • Content Count:  265
  • Reputation:   11
  • Joined:  01/11/13
  • Last Seen:  

Up

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