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

◆ ItemIsVisuallyIncompatible()

bool Terraria.Player.ItemIsVisuallyIncompatible ( Item item)
inline

Definition at line 35771 of file Player.cs.

35772 {
35773 if (compositeBackArm.enabled && item.shieldSlot > 0)
35774 {
35775 return true;
35776 }
35777 if (item.shieldSlot > 0 && ItemID.Sets.IsFood[HeldItem.type])
35778 {
35779 return true;
35780 }
35781 if (body == 96 && item.backSlot > 0 && item.backSlot < ArmorIDs.Back.Count && ArmorIDs.Back.Sets.DrawInTailLayer[item.backSlot])
35782 {
35783 return true;
35784 }
35785 if (legs > 0 && ArmorIDs.Legs.Sets.IncompatibleWithFrogLeg[legs] && item.shoeSlot == 15)
35786 {
35787 return true;
35788 }
35789 if (item.balloonSlot == 18 && (body == 93 || body == 83))
35790 {
35791 return true;
35792 }
35793 return false;
35794 }
static bool[] DrawInTailLayer
If true for a given T:Terraria.ID.ArmorIDs.Back, then that equip will draw in the player's tail layer...
Definition ArmorIDs.cs:1790
static readonly int Count
Definition ArmorIDs.cs:1865
static bool[] IncompatibleWithFrogLeg
If true for a given T:Terraria.ID.ArmorIDs.Legs, then that equip will force F:Terraria....
Definition ArmorIDs.cs:1201
static bool[] IsFood
If true for a given item type (F:Terraria.Item.type), then that item is food. Food items can be pla...
Definition ItemID.cs:446
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
Definition Item.cs:345
CompositeArmData compositeBackArm
Definition Player.cs:2058

References Terraria.Item.backSlot, Terraria.Item.balloonSlot, Terraria.Player.body, Terraria.Player.compositeBackArm, Terraria.ID.ArmorIDs.Back.Count, Terraria.ID.ArmorIDs.Back.Sets.DrawInTailLayer, Terraria.Player.CompositeArmData.enabled, Terraria.Player.HeldItem, Terraria.ID.ArmorIDs.Legs.Sets.IncompatibleWithFrogLeg, Terraria.ID.ItemID.Sets.IsFood, Terraria.Player.legs, Terraria.Item.shieldSlot, Terraria.Item.shoeSlot, and Terraria.Item.type.

Referenced by Terraria.Player.UpdateVisibleAccessories(), and Terraria.Player.UpdateVisibleAccessories().

+ Here is the caller graph for this function: