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

◆ CanDemonHeartAccessoryBeShown()

bool Terraria.Player.CanDemonHeartAccessoryBeShown ( )
inline

Definition at line 4801 of file Player.cs.

4802 {
4803 if (!IsItemSlotUnlockedAndUsable(8) && armor[8].type <= 0 && armor[18].type <= 0)
4804 {
4805 return dye[8].type > 0;
4806 }
4807 return true;
4808 }
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
Item[] armor
The player's armor and accessories. Indexes 0-2 hold head, chest, and legs armor while 10-12 hold the...
Definition Player.cs:1651
bool IsItemSlotUnlockedAndUsable(int slot)
Definition Player.cs:10650

References Terraria.Player.armor, Terraria.Player.dye, Terraria.Player.IsItemSlotUnlockedAndUsable(), and Terraria.Item.type.

Referenced by Terraria.ModLoader.AccessorySlotLoader.Draw(), Terraria.Player.GetAmountOfExtraAccessorySlotsToShow(), and Terraria.UI.ItemSlot.GetGamepadInstructions().

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