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

◆ DropEoWLoot()

void Terraria.NPC.DropEoWLoot ( bool fromCheckDead = true)
inlineprivate

Definition at line 84061 of file NPC.cs.

84062 {
84063 bool flag = true;
84064 for (int i = 0; i < 200; i++)
84065 {
84066 if (i != whoAmI && Main.npc[i].active && (Main.npc[i].type == 13 || Main.npc[i].type == 14 || Main.npc[i].type == 15))
84067 {
84068 flag = false;
84069 break;
84070 }
84071 }
84072 if (flag)
84073 {
84074 boss = true;
84075 NPCLoot();
84076 }
84077 else
84078 {
84079 NPCLoot();
84080 }
84081 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
bool boss
Set to true if the NPC is a boss. Prevents off-screen despawn. Bosses also need [AutoloadBossHead] an...
Definition NPC.cs:1141
void NPCLoot()
Definition NPC.cs:84474

References Terraria.NPC.boss, Terraria.Main.npc, Terraria.NPC.NPCLoot(), and Terraria.Entity.whoAmI.

Referenced by Terraria.NPC.checkDead().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: