From a39293b097baf1bdce3c5fb32a79b714c520fb64 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 13 May 2020 09:19:11 -0400 Subject: [PATCH] burning sea has given me more problems that it should have --- Projectiles/Magic/BrimstoneFireball.cs | 3 +++ Projectiles/Magic/GraniteEnergy.cs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Projectiles/Magic/BrimstoneFireball.cs b/Projectiles/Magic/BrimstoneFireball.cs index 11cba96008..fb98159ad4 100644 --- a/Projectiles/Magic/BrimstoneFireball.cs +++ b/Projectiles/Magic/BrimstoneFireball.cs @@ -31,6 +31,9 @@ namespace CalamityMod.Projectiles.Magic public override void AI() { + //Doesn't use += to override vanilla rotation by AI + projectile.rotation = projectile.rotation + 0.7f; + Lighting.AddLight(projectile.Center, 0.25f, 0f, 0f); if (projectile.wet && !projectile.lavaWet) { diff --git a/Projectiles/Magic/GraniteEnergy.cs b/Projectiles/Magic/GraniteEnergy.cs index 3dad5ccd26..b924ca6b51 100644 --- a/Projectiles/Magic/GraniteEnergy.cs +++ b/Projectiles/Magic/GraniteEnergy.cs @@ -25,7 +25,8 @@ namespace CalamityMod.Projectiles.Magic public override void AI() { projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + MathHelper.ToRadians(90); - Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 229, 0f, 0f, 100, default, 0.6f); + if (Main.rand.NextBool(2)) + Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 229, 0f, 0f, 100, default, 0.6f); CalamityGlobalProjectile.HomeInOnNPC(projectile, false, 500f, 22f, 20f); }