public override void HitEffect(int hitDirection, double damage)
        {
            if (npc.life > 0 && Main.netMode != 1 && Main.rand.Next(1) == 0)
            {
                SharkvernHead jawsbrain = Main.npc[(int)npc.ai[3]].modNPC as SharkvernHead;
                float         percent   = Main.npc[(int)npc.ai[3]].life;
                float         percent2  = Main.npc[(int)npc.ai[3]].lifeMax;
                if (jawsbrain.sergedout < 1 && (percent / percent2) < 0.8f)
                {
                    jawsbrain.sergedout = (int)(60f * (8f + ((percent / percent2) * (Main.expertMode ? 15f : 25f))));
                    int randomSpawn = Main.rand.Next(0);
                    if (randomSpawn == 0)
                    {
                        randomSpawn = mod.NPCType("AquaSurge");
                    }

                    int num660 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)npc.height), randomSpawn, 0, 0f, 0f, 0f, 0f, 255);
                }
            }
        }
        public override void HitEffect(int hitDirection, double damage)
        {
            if (npc.life < 1)
            {
                if (GetType() == typeof(SharkvernBody))
                {
                    Gore.NewGore(npc.Center + new Vector2(0, 0), npc.velocity / 2f, mod.GetGoreSlot("Gores/Sharkvern_body_gib"), 1f);
                }

                if (GetType() == typeof(SharkvernNeck))
                {
                    Gore.NewGore(npc.Center + new Vector2(16, 0).RotatedBy(npc.rotation), npc.velocity / 2f, mod.GetGoreSlot("Gores/Sharkvern_body_gib"), 1f);
                    Gore.NewGore(npc.Center + new Vector2(16, 0).RotatedBy(npc.rotation), npc.velocity / 2f, mod.GetGoreSlot("Gores/Sharkvern_fin_gib"), 1f);
                }
                if (GetType() == typeof(SharkvernBody) || GetType() == typeof(SharkvernBody3))
                {
                    Gore.NewGore(npc.Center + new Vector2(0, 0), npc.velocity / 2f, mod.GetGoreSlot("Gores/Sharkvern_body_gib"), 1f);
                }
            }

            if (npc.life > 0 && Main.netMode != 1 && Main.rand.Next(1) == 0)
            {
                SharkvernHead jawsbrain = Main.npc[(int)npc.ai[3]].modNPC as SharkvernHead;
                float         percent   = Main.npc[(int)npc.ai[3]].life;
                float         percent2  = Main.npc[(int)npc.ai[3]].lifeMax;
                if (jawsbrain.sergedout < 1 && (percent / percent2) < 0.8f)
                {
                    jawsbrain.sergedout = (int)(60f * (8f + ((percent / percent2) * (Main.expertMode ? 15f : 25f))));
                    int randomSpawn = Main.rand.Next(0);
                    if (randomSpawn == 0)
                    {
                        randomSpawn = mod.NPCType("AquaSurge");
                    }

                    int num660 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)npc.height), randomSpawn, 0, 0f, 0f, 0f, 0f, 255);
                }
            }
        }