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

◆ ApplyArmorSoundAndDustChanges()

void Terraria.Player.ApplyArmorSoundAndDustChanges ( )
inline

Definition at line 36952 of file Player.cs.

36953 {
36954 int num = armor[0].headSlot;
36955 int num2 = armor[1].bodySlot;
36956 int num3 = armor[2].legSlot;
36957 if (armor[10].headSlot >= 0)
36958 {
36959 num = armor[10].headSlot;
36960 }
36961 if (armor[11].bodySlot >= 0)
36962 {
36963 num2 = armor[11].bodySlot;
36964 }
36965 if (armor[12].legSlot >= 0)
36966 {
36967 num3 = armor[12].legSlot;
36968 }
36969 if ((wereWolf || forceWerewolf) && !hideWolf)
36970 {
36971 num3 = 20;
36972 num2 = 21;
36973 num = 38;
36974 }
36975 if ((num == 75 || num == 7) && num2 == 7 && num3 == 7)
36976 {
36977 boneArmor = true;
36978 }
36979 if (num2 == 27 && num == 46 && num3 == 26)
36980 {
36981 frostArmor = true;
36982 }
36983 }
int headSlot
Definition Item.cs:542
int legSlot
Definition Item.cs:546
int bodySlot
Definition Item.cs:544
bool forceWerewolf
Definition Player.cs:2535
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

References Terraria.Player.armor, Terraria.Item.bodySlot, Terraria.Player.boneArmor, Terraria.Player.forceWerewolf, Terraria.Player.frostArmor, Terraria.Item.headSlot, Terraria.Player.hideWolf, Terraria.Item.legSlot, and Terraria.Player.wereWolf.

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

+ Here is the caller graph for this function: