tModLoader v2024.11
A mod to make and play Terraria mods
TownNPCProfiles Class Reference

Public Member Functions

bool GetProfile (NPC npc, out ITownNPCProfile profile)
 

Static Public Member Functions

static int GetHeadIndexSafe (NPC npc)
 Retrieves the head index of this town NPC, accounting for shimmer and other variants. Returns -1 if no head index found. (See also TextureAssets.NpcHead, AutoloadHead, Mod.AddNPCHeadTexture(int, string))
 
static ITownNPCProfile LegacyWithSimpleShimmer (string subPath, int headIdNormal, int headIdShimmered, bool uniquePartyTexture=true, bool uniquePartyTextureShimmered=true)
 
static ITownNPCProfile TransformableWithSimpleShimmer (string subPath, int headIdNormal, int headIdShimmered, bool uniqueCreditTexture=true, bool uniqueCreditTextureShimmered=true)
 

Static Public Attributes

static TownNPCProfiles Instance = new TownNPCProfiles()