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

◆ CanAutoReuseItem()

bool Terraria.Player.CanAutoReuseItem ( Item sItem)
inline

Definition at line 53477 of file Player.cs.

53478 {
53480 if (flag2.HasValue)
53481 {
53482 return flag2.GetValueOrDefault();
53483 }
53484 bool flag = sItem.autoReuse;
53485 if (autoReuseGlove)
53486 {
53487 flag |= sItem.CountsAsClass(DamageClass.Melee) || sItem.CountsAsClass(DamageClass.SummonMeleeSpeed);
53488 }
53489 if (autoReuseAllWeapons && sItem.damage > 0 && (!sItem.channel || !channel))
53490 {
53491 flag = true;
53492 }
53493 return flag;
53494 }
static ? bool CanAutoReuseItem(Player player, Item item)
static DamageClass SummonMeleeSpeed
This is a damage class used solely by vanilla whips. It benefits from melee attackSpeed bonuses.
T:Terraria.ModLoader.DamageClass is used to determine the application of item effects,...
bool autoReuseAllWeapons
Definition Player.cs:1966
bool autoReuseGlove
Definition Player.cs:2563

References Terraria.Player.autoReuseAllWeapons, Terraria.Player.autoReuseGlove, Terraria.ModLoader.CombinedHooks.CanAutoReuseItem(), Terraria.Player.channel, Terraria.ModLoader.DamageClass.Melee, and Terraria.ModLoader.DamageClass.SummonMeleeSpeed.

Referenced by Terraria.Player.TryAllowingItemReuse().

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