public override void NPCLoot(NPC npc) { ExtendedItemHooks.FinishScanningForLootDropsAndThenRunHooks(); if (npc.lastInteraction >= 0 && npc.lastInteraction < Main.player.Length) { this.NPCKilledByPlayer(npc); } }
public override void PostSetupContent() { var config = RuinedItemsConfig.Instance; if (config.Get <float>(nameof(config.NPCLootItemRuinPercentChance)) > 0f) { ExtendedItemHooks.AddNPCLootHook(this.RuinLootDropsIf); } }
public override bool PreNPCLoot(NPC npc) { ExtendedItemHooks.BeginScanningForLootDrops(npc); return(base.PreNPCLoot(npc)); }