Jump to content
  • 0
Harmony

Removing Dual Wield attack speed penalty

Question

#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!

// 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]);

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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