示例#1
0
        public override void NPCLoot(NPC npc)
        {
            DBTPlayer dbtPlayer = Main.LocalPlayer.GetModPlayer <DBTPlayer>();

            if (dbtPlayer == null)
            {
                return;
            }

            if (npc.lastInteraction == Main.LocalPlayer.whoAmI)
            {
                dbtPlayer.OnKilledNPC(npc);
            }
        }