Jump to content
  • 0
Sign in to follow this  
prism

Volcano/Deluge/Whirlwind damage modifier

Question

I want to modify the way the scaling works on these abilities. I plan to make an item that give the use extra levels of the skill. 

10% > 14% > 17% > 19% > 20% extra damage. It becomes 20% at the maximum level 5. The problem though is that past the level 5 point it starts decreasing and becomes a penalty to damage if the skill level is high enough. What I want it to do is stop at 20%.

 

From Battle.c :

 

if (sc && sc->count) {
if(sc->data[sC_VOLCANO] && atk_elem == ELE_FIRE)
ratio += skill->enchant_eff[sc->data[sC_VOLCANO]->val1-1];
if(sc->data[sC_VIOLENTGALE] && atk_elem == ELE_WIND)
ratio += skill->enchant_eff[sc->data[sC_VIOLENTGALE]->val1-1];
if(sc->data[sC_DELUGE] && atk_elem == ELE_WATER)
ratio += skill->enchant_eff[sc->data[sC_DELUGE]->val1-1];
 
 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I kind of got it to work.

 

 

I replaced:

 

if(sc->data[sC_VOLCANO] && atk_elem == ELE_FIRE)
ratio += skill->enchant_eff[sc->data[sC_VOLCANO]->val1-1];
if(sc->data[sC_VIOLENTGALE] && atk_elem == ELE_WIND)
ratio += skill->enchant_eff[sc->data[sC_VIOLENTGALE]->val1-1];
if(sc->data[sC_DELUGE] && atk_elem == ELE_WATER)
ratio += skill->enchant_eff[sc->data[sC_DELUGE]->val1-1];
 
With:
if(sc->data[sC_VOLCANO] && atk_elem == ELE_FIRE)
ratio += 20;
if(sc->data[sC_VIOLENTGALE] && atk_elem == ELE_WIND)
ratio += 20;
if(sc->data[sC_DELUGE] && atk_elem == ELE_WATER)
ratio += 20;
 
It's kind of ghetto since it just sets it to a flat 20% bonus. But that's a lot better than nothing.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.