tModLoader v2024.03
A mod to make and play Terraria mods
NPCHeadID.Sets Class Reference

Static Public Attributes

static bool[] CannotBeDrawnInHousingUI = Factory.CreateBoolSet(21, 80)
 If true for a given NPC head ID, then that NPC head will never be drawn in the housing UI. More...
 
static SetFactory Factory = new SetFactory(NPCHeadLoader.NPCHeadCount)
 

Member Data Documentation

◆ CannotBeDrawnInHousingUI

bool [] NPCHeadID.Sets.CannotBeDrawnInHousingUI = Factory.CreateBoolSet(21, 80)
static

If true for a given NPC head ID, then that NPC head will never be drawn in the housing UI.

ModNPCs with ModNPC.TownNPCStayingHomeless set to true will also not draw their heads in the housing UI.
You can get an NPC's head ID using GameContent.TownNPCProfiles.GetHeadIndexSafe(NPC) and ContentSamples.NpcsByNetId.