public static void ModifyNPCLoot(NPC npc, NPCLoot npcLoot) { npc.ModNPC?.ModifyNPCLoot(npcLoot); foreach (GlobalNPC g in HookModifyNPCLoot.Enumerate(npc.globalNPCs)) { g.ModifyNPCLoot(npc, npcLoot); } }
/// <summary> /// Allows you to add and modify NPC loot tables to drop on death and to appear in the Bestiary. /// </summary> /// <param name="npcLoot"></param> public virtual void ModifyNPCLoot(NPCLoot npcLoot) { }