tModLoader v2024.11
A mod to make and play Terraria mods
ArmorIDs.Head.Sets Class Reference

Static Public Attributes

static bool[] DrawFullHair = Factory.CreateBoolSet(10, 12, 28, 42, 62, 97, 106, 113, 116, 119, 133, 138, 139, 163, 178, 181, 191, 198, 217, 218, 220, 222, 224, 225, 228, 229, 230, 232, 235, 238, 242, 243, 244, 245, 272, 273, 274, 277)
 If true for a given Head, then that equip will show the player's full hair when equipped.
Defaults to false.
 
static bool[] DrawHatHair = Factory.CreateBoolSet(13, 14, 15, 16, 18, 21, 24, 25, 26, 29, 40, 44, 51, 56, 59, 60, 63, 64, 65, 67, 68, 69, 81, 92, 94, 95, 100, 114, 121, 126, 130, 136, 140, 143, 145, 158, 159, 161, 182, 184, 190, 195, 215, 216, 219, 223, 226, 227, 231, 233, 234, 262, 263, 264, 265, 267, 275, 279, 280, 281)
 If true for a given Head, then that equip will show the player's hat hair when equipped.
Defaults to false. More...
 
static bool[] DrawHead = Factory.CreateBoolSet(true, 38, 135, 269)
 If true for a given Head, then that equip will allow the player's head and face to be drawn.
Defaults to true.
 
static bool[] DrawsBackHairWithoutHeadgear = Factory.CreateBoolSet(0, 23, 259)
 If true for a given Head, then that equip will allow back hair (HairID.Sets.DrawBackHair) to draw in full when equipped.
Defaults to false.
 
static SetFactory Factory = new SetFactory(EquipLoader.nextEquip[EquipType.Head])
 
static int[] FrontToBackID = Factory.CreateIntSet(-1, 242, 246, 243, 247, 244, 248, 245, 249, 133, 252, 224, 253)
 If != -1 for a given Head, then that equip will display the retrieved Head equip when equipped.
For example, wearing DogEars will also display DogEarsBack.
Defaults to -1.
 
static bool[] IsTallHat = Factory.CreateBoolSet(14, 56, 114, 158, 69, 180)
 If true for a given Head, then that equip will allow a taller hat to render.
Defaults to false. More...
 
static bool[] PreventBeardDraw = Factory.CreateBoolSet(false, 118, 119, 107, 129, 127, 125, 136, 162, 168, 210, 213, 28, 135, 31, 17, 261, 169, 186, 47, 22, 105, 102, 120, 137, 199, 207, 260, 132, 155, 179, 108, 153, 164, 172, 208, 241, 271, 48, 154, 188, 187, 209, 46, 123, 269, 185, 276)
 If true for a given Head, then that equip will hide the player's beard when equipped.
Defaults to false.
 
static bool[] UseAltFaceHeadDraw = Factory.CreateBoolSet(false, 3, 4, 6, 7, 9, 17, 22, 27, 28, 31, 32, 37, 38, 39, 40, 42, 43, 45, 46, 47, 48, 49, 50, 57, 58, 61, 66, 69, 70, 72, 74, 75, 76, 77, 78, 82, 83, 86, 89, 93, 98, 101, 103, 104, 105, 107, 108, 109, 110, 111, 115, 118, 120, 122, 123, 124, 127, 128, 129, 131, 132, 134, 135, 136, 137, 142, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 162, 164, 165, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 185, 186, 187, 188, 189, 192, 193, 194, 200, 201, 202, 204, 207, 208, 209, 210, 211, 213, 214, 230, 236, 237, 239, 240, 241, 251, 254, 255, 258, 260, 266, 268, 269, 270, 271, 261, 8, 12, 30, 35, 36, 73, 79, 80, 84, 85, 87, 88, 90, 91, 102, 112, 141, 160, 180, 196, 205, 257, 256)
 If true for a given Head, then that equip will force head-positioned face equips (Face.Sets.DrawInFaceHeadLayer) with proper alternate face styles (Face.Sets.AltFaceHead) to draw those styles.
Defaults to false.
 
static bool[] UseSkinColor = Factory.CreateBoolSet(false, 274, 277)
 If true for a given Head, then that equip will be colored and dyed in the same way the player's skin is.
Defaults to false. More...
 

Member Data Documentation

◆ DrawHatHair

bool [] ArmorIDs.Head.Sets.DrawHatHair = Factory.CreateBoolSet(13, 14, 15, 16, 18, 21, 24, 25, 26, 29, 40, 44, 51, 56, 59, 60, 63, 64, 65, 67, 68, 69, 81, 92, 94, 95, 100, 114, 121, 126, 130, 136, 140, 143, 145, 158, 159, 161, 182, 184, 190, 195, 215, 216, 219, 223, 226, 227, 231, 233, 234, 262, 263, 264, 265, 267, 275, 279, 280, 281)
static

If true for a given Head, then that equip will show the player's hat hair when equipped.
Defaults to false.

Hat hair textures can be accessed through GameContent.TextureAssets.PlayerHairAlt.

◆ IsTallHat

bool [] ArmorIDs.Head.Sets.IsTallHat = Factory.CreateBoolSet(14, 56, 114, 158, 69, 180)
static

If true for a given Head, then that equip will allow a taller hat to render.
Defaults to false.

This is used by, for example, wizard hats and gladiator helmet. Without this setting, some animation frames would render cropped at the top.

◆ UseSkinColor

bool [] ArmorIDs.Head.Sets.UseSkinColor = Factory.CreateBoolSet(false, 274, 277)
static

If true for a given Head, then that equip will be colored and dyed in the same way the player's skin is.
Defaults to false.

Equips in this set should be grayscale, similar to the player's textures.