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

◆ GetAttackSpeed< T >()

ref float Terraria.Player.GetAttackSpeed< T > ( )
inline

Gets the attack speed modifier for this damage type on this player. This returns a reference, and as such, you can freely modify this method's return values with operators. Setting this such that it results in zero or a negative value will throw an exception. NOTE: Due to the nature of attack speed modifiers, modifications to Flat will do nothing for this modifier.

Type Constraints
T :DamageClass 

Definition at line 58330 of file Player.cs.

58330 : DamageClass
58331 {
58332 return ref GetAttackSpeed(ModContent.GetInstance<T>());
58333 }
T:Terraria.ModLoader.DamageClass is used to determine the application of item effects,...
Manages content added by mods. Liasons between mod content and Terraria's arrays and oversees the Loa...
Definition ModContent.cs:38
ref float GetAttackSpeed(DamageClass damageClass)
Gets the attack speed modifier for this damage type on this player. This returns a reference,...
Definition Player.cs:58339

References Terraria.Player.GetAttackSpeed().

+ Here is the call graph for this function: