Exemple #1
0
 private void FinishFight()
 {
     if (timer == 0)
     {
         if (!Main.dedServ)
         {
             MoonlordDeathDrama.RequestLight(1f, npc.Center);
         }
         PlaySound(29, 92);
     }
     if (!Main.dedServ)
     {
         float x = Main.rand.Next(-Main.screenWidth / 2, Main.screenWidth / 2);
         float y = Main.rand.Next(-Main.screenHeight / 2, Main.screenHeight / 2);
         MoonlordDeathDrama.AddExplosion(npc.Center + new Vector2(x, y));
     }
     timer++;
     if (timer >= 300)
     {
         npc.dontTakeDamage        = false;
         npc.HitSound              = null;
         npc.takenDamageMultiplier = 1f;
         npc.StrikeNPCNoInteraction(9999, 0f, 0);
     }
 }