Removing Dual Wield attack speed penalty

Harmony

New member
Messages
32
Points
0
#1 How do I change the src in status.c to remove the dual wield attack speed penaly? 
#2 How to I change the base aspd values?

#else
// base weapon delay
amotion = (sd->status.weapon < MAX_SINGLE_WEAPON_TYPE)
? (status->dbs->aspd_base[pc->class2idx(sd->status.class_)][sd->status.weapon]) // single weapon
: (status->dbs->aspd_base[pc->class2idx(sd->status.class_)][sd->weapontype1] + status->dbs->aspd_base[pc->class2idx(sd->status.class_)][sd->weapontype2]) * 7 / 10; // dual-wield

// percentual delay reduction from stats
amotion -= amotion * (4 * st->agi + st->dex) / 1000;

// raw delay adjustment from bAspd bonus
amotion += sd->bonus.aspd_add;

/* angra manyu disregards aspd_base and similar */
if ( sd->equip_index[EQI_HAND_R] >= 0 && sd->status.inventory[sd->equip_index[EQI_HAND_R]].nameid == ITEMID_ANGRA_MANYU )
return 0;
#endif





Solved!

Code:
// base weapon delay
	amotion = (sd->status.weapon < MAX_SINGLE_WEAPON_TYPE)
		? (status->dbs->aspd_base[pc->class2idx(sd->status.class_)][sd->status.weapon]) // single weapon
		: (status->dbs->aspd_base[pc->class2idx(sd->status.class_)][sd->weapontype1]);
 
Back
Top