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

◆ UpdateVisibleAccessory()

void Terraria.Player.UpdateVisibleAccessory ( int itemSlot,
Item item )
inlineprivate

Definition at line 35057 of file Player.cs.

35058 {
35059 if (item.stringColor > 0)
35060 {
35061 stringColor = item.stringColor;
35062 }
35063 if (item.handOnSlot > 0)
35064 {
35065 handon = item.handOnSlot;
35066 }
35067 if (item.handOffSlot > 0)
35068 {
35069 handoff = item.handOffSlot;
35070 }
35071 if (item.backSlot > 0)
35072 {
35074 {
35075 backpack = item.backSlot;
35076 }
35077 else if (ArmorIDs.Back.Sets.DrawInTailLayer[item.backSlot])
35078 {
35079 tail = item.backSlot;
35080 }
35081 else
35082 {
35083 back = item.backSlot;
35084 front = -1;
35085 }
35086 }
35087 if (item.frontSlot > 0)
35088 {
35089 front = item.frontSlot;
35090 }
35091 if (sitting.isSitting)
35092 {
35093 back = -1;
35094 }
35095 if (item.shoeSlot > 0)
35096 {
35097 shoe = item.shoeSlot;
35099 {
35101 }
35102 }
35103 if (item.waistSlot > 0)
35104 {
35105 waist = item.waistSlot;
35106 }
35107 if (item.shieldSlot > 0)
35108 {
35109 shield = item.shieldSlot;
35110 }
35111 if (item.neckSlot > 0)
35112 {
35113 neck = item.neckSlot;
35114 }
35115 if (item.faceSlot > 0)
35116 {
35118 {
35119 faceHead = item.faceSlot;
35120 }
35121 else if (ArmorIDs.Face.Sets.DrawInFaceFlowerLayer[item.faceSlot])
35122 {
35123 faceFlower = item.faceSlot;
35124 }
35125 else
35126 {
35127 face = item.faceSlot;
35128 }
35129 }
35130 if (item.balloonSlot > 0)
35131 {
35133 {
35134 balloonFront = item.balloonSlot;
35135 }
35136 else
35137 {
35138 balloon = item.balloonSlot;
35139 }
35140 }
35141 if (item.beardSlot > 0)
35142 {
35143 beard = item.beardSlot;
35144 }
35145 if (item.wingSlot > 0)
35146 {
35147 wings = item.wingSlot;
35148 }
35149 if (item.type == 3580)
35150 {
35151 yoraiz0rEye = itemSlot - 2;
35152 }
35153 if (item.type == 3581)
35154 {
35155 yoraiz0rDarkness = true;
35156 }
35157 if (item.type == 3929)
35158 {
35159 leinforsHair = true;
35160 }
35161 if (item.type == 4404)
35162 {
35163 hasFloatingTube = true;
35164 }
35165 if (item.type == 4563)
35166 {
35167 hasUnicornHorn = true;
35168 }
35169 if (item.type == 1987)
35170 {
35171 hasAngelHalo = true;
35172 }
35173 if (item.type == 5075)
35174 {
35175 hasRainbowCursor = true;
35176 }
35177 }
static bool[] DrawInBackpackLayer
Definition ArmorIDs.cs:1591
static bool[] DrawInFrontOfBackArmLayer
Definition ArmorIDs.cs:2045
static bool[] DrawInFaceFlowerLayer
Definition ArmorIDs.cs:1987
static bool[] DrawInFaceHeadLayer
Definition ArmorIDs.cs:1989
sbyte balloonFront
Definition Player.cs:1363
PlayerSittingHelper sitting
Definition Player.cs:2463
bool hasFloatingTube
Definition Player.cs:2295
bool hasUnicornHorn
Definition Player.cs:1639
bool leinforsHair
Definition Player.cs:1645
sbyte faceFlower
Definition Player.cs:1361
bool hasAngelHalo
Definition Player.cs:1641
bool yoraiz0rDarkness
Definition Player.cs:1637
bool hasRainbowCursor
Definition Player.cs:1643

References Terraria.ID.ArmorIDs.Back.Sets.DrawInBackpackLayer, Terraria.ID.ArmorIDs.Face.Sets.DrawInFaceFlowerLayer, Terraria.ID.ArmorIDs.Face.Sets.DrawInFaceHeadLayer, Terraria.ID.ArmorIDs.Balloon.Sets.DrawInFrontOfBackArmLayer, Terraria.ID.ArmorIDs.Back.Sets.DrawInTailLayer, System.item, and Terraria.ID.ArmorIDs.Shoe.Sets.MaleToFemaleID.