Randomized phantasmal ruin soul spawn counts
This commit is contained in:
1 parent
d6a2dba64d
commit
c0489c542a
1 file changed
+4
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user