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

◆ CountsAsCritter

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

If true for a given NPC type (F:Terraria.NPC.type), then that NPC is counted as a critter.
Critters cannot be damage by players with F:Terraria.Player.dontHurtCritters set to true.
Also, critters can't be used to summon Horseman's Blade projectiles, nor can they be chased by said projectiles.

Definition at line 416 of file NPCID.cs.

Referenced by Terraria.ID.NPCID.Sets.Sets(), Terraria.Player.CanNPCBeHitByPlayerOrPlayerProjectile(), and Terraria.Projectile.Damage().