TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetWeaponAttackSpeed()

float Terraria.Player.GetWeaponAttackSpeed ( Item sItem)
inline

Definition at line 58491 of file Player.cs.

58492 {
58493 float attackSpeed = GetTotalAttackSpeed(sItem.DamageType);
58494 return 1f + (attackSpeed - 1f) * ItemID.Sets.BonusAttackSpeedMultiplier[sItem.type];
58495 }
static float[] BonusAttackSpeedMultiplier
Determines the multiplier that applies to the given item type's (F:Terraria.Item.type) attack speed....
Definition ItemID.cs:1465
float GetTotalAttackSpeed(DamageClass damageClass)
Definition Player.cs:58434

References Terraria.ID.ItemID.Sets.BonusAttackSpeedMultiplier, and Terraria.Player.GetTotalAttackSpeed().

Referenced by Terraria.ModLoader.CombinedHooks.TotalUseSpeedMultiplier().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: