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

◆ ApplyArmorSoundAndDustChanges()

void Terraria.Player.ApplyArmorSoundAndDustChanges ( )
inline

Definition at line 36101 of file Player.cs.

36102 {
36103 int num = armor[0].headSlot;
36104 int num2 = armor[1].bodySlot;
36105 int num3 = armor[2].legSlot;
36106 if (armor[10].headSlot >= 0)
36107 {
36108 num = armor[10].headSlot;
36109 }
36110 if (armor[11].bodySlot >= 0)
36111 {
36112 num2 = armor[11].bodySlot;
36113 }
36114 if (armor[12].legSlot >= 0)
36115 {
36116 num3 = armor[12].legSlot;
36117 }
36118 if ((wereWolf || forceWerewolf) && !hideWolf)
36119 {
36120 num3 = 20;
36121 num2 = 21;
36122 num = 38;
36123 }
36124 if ((num == 75 || num == 7) && num2 == 7 && num3 == 7)
36125 {
36126 boneArmor = true;
36127 }
36128 if (num2 == 27 && num == 46 && num3 == 26)
36129 {
36130 frostArmor = true;
36131 }
36132 }
int headSlot
Definition Item.cs:195
int legSlot
Definition Item.cs:199
int bodySlot
Definition Item.cs:197
bool forceWerewolf
Definition Player.cs:1947

References Terraria.Item.bodySlot, Terraria.Item.headSlot, and Terraria.Item.legSlot.