Jump to content
  • 0
Sign in to follow this  
Neferupitou

Formula do Soul Breaker

Question

Boa noite pessoal, gostaria de saber como poderia modificar a formula do Soul Breaker, gostaria que a habilidade fosse baseada somente no ataque, não no ataque + int

 

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

como vc não deu informação alguma (como, qual emulador está usando, se é renewal ou não etc) e não tenho como adivinhar nada disso, vou apenas deixar isso pra vc:

 

	case ASC_BREAKER:		{#ifdef RENEWAL		md.damage = 500+rnd()%500 + 5*skill_lv * sstatus->int_;		nk|=NK_IGNORE_FLEE|NK_NO_ELEFIX; //These two are not properties of the weapon based part.#else		int ratio = 300 + 50 * skill_lv;		int64 matk = battle->calc_magic_attack(src, target, skill_id, skill_lv, mflag).damage;		short totaldef = status->get_total_def(target) + status->get_total_mdef(target);		int64 atk = battle->calc_base_damage(src, target, skill_id, skill_lv, nk, false, s_ele, ELE_NEUTRAL, EQI_HAND_R, (sc && sc->data[SC_MAXIMIZEPOWER]?1:0)|(sc && sc->data[SC_WEAPONPERFECT]?8:0), md.flag);						if( sc && sc->data[SC_EDP] )			ratio >>= 1;		md.damage = (matk + atk) * ratio / 100;		md.damage -= totaldef;#endif		}		break;
Edited by evilpuncker

Share this post


Link to post
Share on other sites
  • 0

estou utilizando o Hércules, pré-renewal.

 

Eu tentei modificar a seguinte linha

		md.damage = (matk + atk) * ratio / 100;

 

mas aparentemente não foi...

Share this post


Link to post
Share on other sites
  • 0

tenta algo do tipo:

 

	case ASC_BREAKER:		{		int ratio = 300 + 50 * skill_lv;		short totaldef = status->get_total_def(target) + status->get_total_mdef(target);		int64 atk = battle->calc_base_damage(src, target, skill_id, skill_lv, nk, false, s_ele, ELE_NEUTRAL, EQI_HAND_R, (sc && sc->data[SC_MAXIMIZEPOWER]?1:0)|(sc && sc->data[SC_WEAPONPERFECT]?8:0), md.flag);						if( sc && sc->data[SC_EDP] )			ratio >>= 1;		md.damage = atk * ratio / 100;		md.damage -= totaldef;		}		break;

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.