Example #1
0
        public override void Kill(int timeLeft)
        {
            switch (Main.rand.Next(4))
            {
            case 0:
                DustHelper.DrawDustImageRainbow(projectile.Center, 0.125f, "SpiritMod/Effects/DustImages/GarfieldFirework", 1f);
                break;

            case 1:
                DustHelper.DrawDustImageRainbow(projectile.Center, 0.125f, "SpiritMod/Effects/DustImages/GladeFirework", 1f);
                break;

            case 2:
                DustHelper.DrawDustImageRainbow(projectile.Center, 0.125f, "SpiritMod/Effects/DustImages/TrollFirework", 1f);
                break;

            case 3:
                DustHelper.DrawDustImageRainbow(projectile.Center, 0.125f, "SpiritMod/Effects/DustImages/AmogusFirework", 1f);
                break;
            }
            Main.PlaySound(SoundID.Item14, projectile.Center);
        }