Formula do Soul Breaker

Neferupitou

New member
Messages
21
Points
0
Github
Neferupitou
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

 
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:

Code:
	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;
 
Last edited by a moderator:
estou utilizando o Hércules, pré-renewal.

Eu tentei modificar a seguinte linha

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

mas aparentemente não foi...

 
tenta algo do tipo:

Code:
	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;
 
Back
Top