diff --git a/Particles/FlameParticle.cs b/Particles/FlameParticle.cs index 128a7e2286..7acd1586aa 100644 --- a/Particles/FlameParticle.cs +++ b/Particles/FlameParticle.cs @@ -5,10 +5,9 @@ namespace CalamityMod.Particles { public class FlameParticle : Particle { - public override string Texture => "CalamityMod/Particles/Fire"; + public override string Texture => "CalamityMod/Particles/Flames"; public override bool UseAdditiveBlend => true; public override bool SetLifetime => true; - public override int FrameVariants => 3; public float RelativePower; @@ -34,6 +33,7 @@ namespace CalamityMod.Particles { Scale += RelativePower * 0.01f; Position.Y -= RelativePower * 1.25f; + Scale *= 0.97f; Color = Color.Lerp(BrightColor, DarkColor, LifetimeCompletion); Color = Color.Lerp(Color, Color.White, Utils.GetLerpValue(0.1f, 0.25f, LifetimeCompletion, true) * Utils.GetLerpValue(0.4f, 0.25f, LifetimeCompletion, true) * 0.7f); diff --git a/Particles/Flames.png b/Particles/Flames.png new file mode 100644 index 0000000000..4a07c0f9e1 Binary files /dev/null and b/Particles/Flames.png differ diff --git a/Projectiles/Ranged/EssenceFire.cs b/Projectiles/Ranged/EssenceFire.cs index 1ee9e6186c..9d2781a92e 100644 --- a/Projectiles/Ranged/EssenceFire.cs +++ b/Projectiles/Ranged/EssenceFire.cs @@ -57,18 +57,20 @@ namespace CalamityMod.Projectiles.Ranged dust.velocity += Projectile.velocity * Utils.Remap(Time, 0f, Fadetime * 0.75f, 1f, 0.1f) * Utils.Remap(Time, 0f, Fadetime * 0.1f, 0.1f, 1f); } - if (Main.rand.NextBool(20)) + if (Main.rand.NextBool(17)) { - FlameParticle fire = new FlameParticle(Projectile.Center, 20, MathHelper.Clamp(Time * 0.05f, 0.5f, 2f), 0.05f, Color.BlueViolet * 0.5f, Color.DarkBlue * 0.5f); - fire.Velocity = Projectile.velocity.RotatedByRandom(MathHelper.ToRadians(6f)) * 0.3f; + bool LowVel = Main.rand.NextBool() ? false : true; + FlameParticle fire = new FlameParticle(Projectile.Center, 20, MathHelper.Clamp(Time * 0.05f, 0.15f, 1.75f), 0.05f, Color.BlueViolet * (LowVel ? 1.2f : 0.5f), Color.DarkBlue * (LowVel ? 1.2f : 0.5f)); + fire.Velocity = new Vector2(Projectile.velocity.X * 0.8f, -10).RotatedByRandom(0.005f) * (LowVel ? Main.rand.NextFloat(0.4f, 0.65f) : Main.rand.NextFloat(0.8f, 1f)); GeneralParticleHandler.SpawnParticle(fire); } } else if (Time == 5f) { - Dust dust = Dust.NewDustPerfect(Projectile.Center, Main.rand.NextBool(3) ? 295 : 181, Projectile.velocity.RotatedByRandom(MathHelper.ToRadians(30f)) * 0.6f); + Dust dust = Dust.NewDustPerfect(Projectile.Center, Main.rand.NextBool(3) ? 295 : 181, Projectile.velocity.RotatedByRandom(MathHelper.ToRadians(30f)) * Main.rand.NextFloat(0.5f, 1f)); dust.scale = Main.rand.NextFloat(0.8f, 1.8f); dust.noGravity = true; + dust.fadeIn = 0.5f; } }