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

◆ CanMasterModeAccessoryBeShown()

bool Terraria.Player.CanMasterModeAccessoryBeShown ( )
inline

Definition at line 4810 of file Player.cs.

4811 {
4812 if (!IsItemSlotUnlockedAndUsable(9) && armor[9].type <= 0 && armor[19].type <= 0)
4813 {
4814 return dye[9].type > 0;
4815 }
4816 return true;
4817 }
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(), and Terraria.Player.GetAmountOfExtraAccessorySlotsToShow().

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