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

◆ UpdateVisibleAccessories() [1/2]

void Terraria.Player.UpdateVisibleAccessories ( )
inlineprivate

Definition at line 35742 of file Player.cs.

35743 {
35744 for (int i = 3; i < 10; i++)
35745 {
35747 {
35749 }
35750 }
35752 for (int j = 13; j < 20; j++)
35753 {
35755 {
35756 Item item2 = armor[j];
35758 {
35760 }
35761 }
35762 }
35764 if (HeldItem.type == 4760 && ownedProjectileCounts[866] < 1)
35765 {
35766 shield = 9;
35767 cShield = 0;
35768 }
35769 }
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
static void UpdateVisibleVanityAccessories(Player player)
static void UpdateVisibleAccessories(Player player)
This is where all ModPlayer hooks are gathered and called.
void UpdateVisibleAccessory(int itemSlot, Item item, bool modded=false)
Definition Player.cs:35805
bool ItemIsVisuallyIncompatible(Item item)
Definition Player.cs:35771
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
void UpdateVisibleAccessories()
Definition Player.cs:35742
bool[] hideVisibleAccessory
Definition Player.cs:1880
bool IsItemSlotUnlockedAndUsable(int slot)
Definition Player.cs:10650
int[] ownedProjectileCounts
Provides efficient access to the number of projectiles of the specified type owned by this player cur...
Definition Player.cs:3105

References Terraria.Player.armor, Terraria.Player.cShield, Terraria.Player.HeldItem, Terraria.Player.hideVisibleAccessory, Terraria.Player.IsItemSlotUnlockedAndUsable(), Terraria.Player.ItemIsVisuallyIncompatible(), Terraria.Player.ownedProjectileCounts, Terraria.Player.shield, Terraria.Item.type, Terraria.Player.UpdateVisibleAccessories(), Terraria.ModLoader.PlayerLoader.UpdateVisibleAccessories(), Terraria.Player.UpdateVisibleAccessory(), and Terraria.ModLoader.PlayerLoader.UpdateVisibleVanityAccessories().

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

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