Randomized phantasmal ruin soul spawn counts

This commit is contained in:
DominicKarma committed 2021-03-09 19:57:38 -06:00
1 parent d6a2dba64d
commit c0489c542a
1 file changed
+4 -2
+4 -2
View File
@@ -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);