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

◆ attackSpeedOnlyAffectsWeaponAnimation

bool Terraria.Item.attackSpeedOnlyAffectsWeaponAnimation
getset

Dictates whether or not attack speed modifiers on this weapon will actually affect its use time.
Defaults to false, which allows attack speed modifiers to affect use time. Set this to true to prevent this from happening.
Used in vanilla by all melee weapons which shoot a projectile and have F:Terraria.Item.noMelee set to false.

Tools should typically set this to true to prevent the tool from mining quicker when the player has attack speed modifiers. By convention tool speed should not be affected by attack speed. They will still attack quicker, but their use time (mine/hammer/axe speed) should not be affected.

Definition at line 1039 of file Item.cs.

1039{ get; set; }

Referenced by Terraria.Item.ResetStats(), Terraria.Item.RestoreMeleeSpeedBehaviorOnVanillaItems(), and Terraria.ModLoader.CombinedHooks.TotalUseTimeMultiplier().