Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
bc9b6142aa
1 file changed
+6
-5
@@ -6783,13 +6783,14 @@ namespace CalamityMod.CalPlayer
|
||||
dam = (int)(dam * 0.5f);
|
||||
float angleVariance = MathHelper.TwoPi / (float)numSpears;
|
||||
float spinOffsetAngle = MathHelper.Pi / (2f * numSpears);
|
||||
Vector2 posVec = new Vector2(8f, 0f).RotatedByRandom(MathHelper.TwoPi);
|
||||
posVec = posVec.RotatedBy(angleVariance);
|
||||
Vector2 velocity = new Vector2(posVec.X, posVec.Y).RotatedBy(spinOffsetAngle);
|
||||
velocity.Normalize();
|
||||
velocity *= 8f;
|
||||
|
||||
for (int x = 0; x < numSpears; x++)
|
||||
{
|
||||
Vector2 posVec = new Vector2(8f, 0f).RotatedByRandom(MathHelper.TwoPi);
|
||||
posVec = posVec.RotatedBy(angleVariance);
|
||||
Vector2 velocity = new Vector2(posVec.X, posVec.Y).RotatedBy(spinOffsetAngle);
|
||||
velocity.Normalize();
|
||||
velocity *= 8f;
|
||||
int proj = Projectile.NewProjectile(source, Main.projectile[i].Center + posVec, velocity, ModContent.ProjectileType<MiniGuardianSpear>(), dam, 0f, Player.whoAmI, 0f, 0f);
|
||||
Main.projectile[proj].originalDamage = dam;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user