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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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