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

◆ DoDeathEvents_BeforeLoot()

void Terraria.NPC.DoDeathEvents_BeforeLoot ( Player closestPlayer)
inlineprivate

Definition at line 71166 of file NPC.cs.

71167 {
71168 int num = type;
71169 if ((uint)(num - 125) <= 1u && AnyNPCs((type == 125) ? 126 : 125))
71170 {
71171 value = 0f;
71172 boss = false;
71173 }
71174 }
bool boss
Definition NPC.cs:515
float value
Definition NPC.cs:523
static bool AnyNPCs(int Type)
Definition NPC.cs:86689
int type
Definition NPC.cs:445

References Terraria.NPC.AnyNPCs(), Terraria.NPC.boss, Terraria.NPC.type, and Terraria.NPC.value.

Referenced by Terraria.NPC.NPCLoot().