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

◆ CountsAsACritter

bool Terraria.NPC.CountsAsACritter
get

Definition at line 1559 of file NPC.cs.

1560 {
1561 get
1562 {
1563 if (lifeMax <= 5 && damage == 0 && type != 594)
1564 {
1565 return type != 686;
1566 }
1567 return false;
1568 }
1569 }
int damage
The amount of contact damage this NPC deals. Changing this WILL NOT change the amount of damage done...
Definition NPC.cs:1027
int lifeMax
The maximum life of this NPC.
Definition NPC.cs:1077
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
Definition NPC.cs:990