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

◆ ApplyAttackCooldown() [1/2]

void Terraria.Player.ApplyAttackCooldown ( )
inline

Definition at line 43693 of file Player.cs.

43694 {
43695 attackCD = Math.Max(1, (int)((double)itemAnimationMax * 0.33));
43696 }
int itemAnimationMax
Definition Player.cs:3127

References Terraria.Player.attackCD, and Terraria.Player.itemAnimationMax.

Referenced by Terraria.Player.ItemCheck_MeleeHitPVP(), Terraria.Player.ProcessHitAgainstNPC(), Terraria.Player.TakeDamageFromJellyfish(), and Terraria.Player.TryTogglingShield().

+ Here is the caller graph for this function: