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

◆ blockLoot

readonly IList<int> Terraria.ModLoader.NPCLoader.blockLoot = new List<int>()
static

Allows you to stop an NPC from dropping loot by adding item IDs to this list. This list will be cleared whenever NPCLoot ends. Useful for either removing an item or change the drop rate of an item in the NPC's loot table. To change the drop rate of an item, use the PreNPCLoot hook, spawn the item yourself, then add the item's ID to this list.

Definition at line 108 of file NPCLoader.cs.

Referenced by Terraria.Item.NewItem_Inner(), Terraria.ModLoader.NPCLoader.OnKill(), and Terraria.ModLoader.NPCLoader.PreKill().