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

◆ IsTownSlime

bool [] Terraria.ID.NPCID.Sets.IsTownSlime
static

If true for a given NPC type (F:Terraria.NPC.type), then that NPC is categorized as a town slime.
Town slimes must have F:Terraria.NPC.aiStyle == F:Terraria.ID.NPCAIStyleID.Passive to function properly. Additionally, they should also be in the F:Terraria.ID.NPCID.Sets.IsTownPet set.
Town slimes cannot sit on chairs, will try to play their idle animations more often, and have horizontally flipped sprites compared to normal town NPCs.
Defaults to false.

Definition at line 232 of file NPCID.cs.

Referenced by Terraria.ID.NPCID.Sets.Sets(), Terraria.NPC.AI_007_AttemptToPlayIdleAnimationsForPets(), Terraria.NPC.AI_007_FindGoodRestingSpot(), Terraria.NPC.AI_007_TownEntities(), Terraria.NPC.AI_007_TryForcingSitting(), Terraria.Main.DrawNPCExtras(), Terraria.NPC.GetChat(), Terraria.Main.NPCAddHeight(), and Terraria.NPC.VanillaFindFrame().