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

◆ IsNPCValidForBestiaryKillCredit()

bool Terraria.NPC.IsNPCValidForBestiaryKillCredit ( )
inline

Definition at line 84516 of file NPC.cs.

84517 {
84518 if ((uint)(type - 13) <= 2u)
84519 {
84520 return boss;
84521 }
84522 return true;
84523 }
bool boss
Set to true if the NPC is a boss. Prevents off-screen despawn. Bosses also need [AutoloadBossHead] an...
Definition NPC.cs:1141
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

References Terraria.NPC.boss, and Terraria.NPC.type.

Referenced by Terraria.NPC.AI_003_Fighters(), and Terraria.NPC.NPCLoot().

+ Here is the caller graph for this function: