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

◆ UpdateVisibleAccessories()

void Terraria.Player.UpdateVisibleAccessories ( )
inlineprivate

Definition at line 34962 of file Player.cs.

34963 {
34964 for (int i = 3; i < 10; i++)
34965 {
34967 {
34968 continue;
34969 }
34970 Item item = armor[i];
34971 if (eocDash > 0 && shield == -1 && item.shieldSlot != -1)
34972 {
34973 shield = item.shieldSlot;
34974 if (cShieldFallback != -1)
34975 {
34977 }
34978 }
34979 if (shieldRaised && shield == -1 && item.shieldSlot != -1)
34980 {
34981 shield = item.shieldSlot;
34982 if (cShieldFallback != -1)
34983 {
34985 }
34986 }
34988 {
34989 continue;
34990 }
34991 if (item.wingSlot > 0)
34992 {
34993 if (hideVisibleAccessory[i] && (velocity.Y == 0f || mount.Active))
34994 {
34995 continue;
34996 }
34997 wings = item.wingSlot;
34998 }
34999 if (!hideVisibleAccessory[i])
35000 {
35002 }
35003 }
35004 for (int j = 13; j < 20; j++)
35005 {
35007 {
35008 Item item2 = armor[j];
35010 {
35012 }
35013 }
35014 }
35015 int type = HeldItem.type;
35016 if (type == 4760 && ownedProjectileCounts[866] < 1)
35017 {
35018 shield = 9;
35019 cShield = 0;
35020 }
35021 }
Vector2 velocity
Definition Entity.cs:16
bool Active
Definition Mount.cs:345
void UpdateVisibleAccessory(int itemSlot, Item item)
Definition Player.cs:35057
bool ItemIsVisuallyIncompatible(Item item)
Definition Player.cs:35023
bool[] hideVisibleAccessory
Definition Player.cs:1367
bool IsItemSlotUnlockedAndUsable(int slot)
Definition Player.cs:11968
int cShieldFallback
Definition Player.cs:2517
int[] ownedProjectileCounts
Definition Player.cs:2545
bool shieldRaised
Definition Player.cs:2673

References System.item, Terraria.Item.shieldSlot, System.type, and Terraria.Item.type.