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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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