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

◆ CanNPCParty()

static bool Terraria.GameContent.Events.BirthdayParty.CanNPCParty ( NPC n)
inlinestaticprivate

Definition at line 60 of file BirthdayParty.cs.

61 {
62 if (!n.active || !n.townNPC || n.aiStyle == 0 || n.type == 37 || n.type == 453 || n.type == 441)
63 {
64 return false;
65 }
66 if (NPCID.Sets.IsTownPet[n.type])
67 {
68 return false;
69 }
70 return true;
71 }
static bool[] IsTownPet
Definition NPCID.cs:4099

References Terraria.ID.NPCID.Sets.IsTownPet.

Referenced by Terraria.GameContent.Events.BirthdayParty.NaturalAttempt(), and Terraria.GameContent.Events.BirthdayParty.UpdateTime().