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

◆ NPCLoot_DropItems()

void Terraria.NPC.NPCLoot_DropItems ( Player closestPlayer)
inlineprivate

Definition at line 71176 of file NPC.cs.

71177 {
71179 dropAttemptInfo.player = closestPlayer;
71180 dropAttemptInfo.npc = this;
71181 dropAttemptInfo.IsExpertMode = Main.expertMode;
71182 dropAttemptInfo.IsMasterMode = Main.masterMode;
71183 dropAttemptInfo.IsInSimulation = false;
71184 dropAttemptInfo.rng = Main.rand;
71186 Main.ItemDropSolver.TryDropping(info);
71187 }

References Terraria.Main.expertMode, System.info, Terraria.Main.ItemDropSolver, Terraria.Main.masterMode, and Terraria.Main.rand.

Referenced by Terraria.NPC.NPCLoot().