Jump to content
Sign in to follow this  
Rytech

r801 - Fixed ASPD Changes By Status's

Recommended Posts

This is something thats long overdue but its finally being done. In the past, only status I knew of that changed ones ASPD by a fixed amount is the Rune Knight's Fighting Spirit and never bothered on doing a full official mechanic coding since its just one. Now looking at things today there's a few status's that do adjust ASPD by a fixed amount, including a new one being added for r801 Heated Barrel.

 

/// Calculates an object's ASPD modifier by a fixed amount.
/// Calculation is done before aspd_rate.
/// Note that the scale of aspd_amount is 10 = 1 ASPD.
static short status_calc_aspd_amount(struct block_list *bl, struct status_change *sc, int aspd_amount)
{
	if( !sc || !sc->count )
		return cap_value(aspd_amount,0,SHRT_MAX);

	if( sc->data[SC_FIGHTINGSPIRIT] )
		aspd_amount += 4 * sc->data[SC_FIGHTINGSPIRIT]->val2;
	if( sc->data[SC_HEAT_BARREL] )
		aspd_amount += 10 * sc->data[SC_HEAT_BARREL]->val1;

	return (short)cap_value(aspd_amount,0,SHRT_MAX);
}

 

Hoped more people would guess on what status_calc_aspd_amount was when I teased it with a clue in the group but barely anyone did. Talk about boring. So there's a item bonus that allows for this same exact mechanic but only 2 items use it. 1165,Masamune and 1191,Alca_Bringer. I wanted to use this bonus with status's as well but the item bonus was limited to players and trying to make it work with other entity's could cause the item bonus to work on other types not intended. Didn't want that.

 

So a new setup was made to properly work with not only players, but also on homunculus, mercenarys, monsters, and elementals which works much better. However, it does follow the same mechanic as the item bonus does which makes it not give as much of a bonus when ASPD rate adjustments are taken in. If I have 2 hand quicken lv 10 active, the 4 ASPD fighting spirit gives ends up becoming 3. This is normal as the Masamune weapon also ends up giving a 1 increase with that and a berserk pot on. Even in official this behavior happens according to this entry from the wiki...

 

The ASPD boost is absolute, not relative. The higher the user's total Equip ASPD% is, the lower the boost. For example: 24% of increased Equip ASPD will make this rune increases ASPD by 3, but if there is a 40% of increased Equip ASPD, this rune will only grant 2 ASPD.

http://irowiki.org/wiki/Rune_Mastery#Rune_Skills

 

Expect this and Heated Barrel to come out in r801. Update is also focusing on other Rebellion buff skills and similar things.

Share this post


Link to post
Share on other sites

Of course it still uses the old classic game mechanics. Thats the main purpose of the project. This update just allows certain renewal skills to adjust ASPD by a fixed amount.

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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