From c0489c542a910bbcb5f537b2ea3eb877bf6ec8f2 Mon Sep 17 00:00:00 2001 From: DominicKarma <51094361+DominicKarma@users.noreply.github.com> Date: Tue, 9 Mar 2021 19:57:38 -0600 Subject: [PATCH] Randomized phantasmal ruin soul spawn counts --- Projectiles/Rogue/PhantasmalRuinProj.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Projectiles/Rogue/PhantasmalRuinProj.cs b/Projectiles/Rogue/PhantasmalRuinProj.cs index d1de1db628..edafe36ff9 100644 --- a/Projectiles/Rogue/PhantasmalRuinProj.cs +++ b/Projectiles/Rogue/PhantasmalRuinProj.cs @@ -82,8 +82,10 @@ namespace CalamityMod.Projectiles.Rogue { // Each pair of souls has randomized player homing strength float ai1 = Main.rand.NextFloat() + 0.5f; - Projectile.NewProjectile(projectile.Center, velocity, projID, soulDamage, soulKB, projectile.owner, 0f, ai1); - Projectile.NewProjectile(projectile.Center, -velocity, projID, soulDamage, soulKB, projectile.owner, 0f, ai1); + if (Main.rand.NextBool(2)) + Projectile.NewProjectile(projectile.Center, velocity, projID, soulDamage, soulKB, projectile.owner, 0f, ai1); + if (Main.rand.NextBool(2)) + Projectile.NewProjectile(projectile.Center, -velocity, projID, soulDamage, soulKB, projectile.owner, 0f, ai1); // Rotate direction for the next pair of souls. velocity = velocity.RotatedBy(MathHelper.TwoPi / numSouls);