From 3ec6f619afd062ba016fc484e42686fe2437f81a Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 10 May 2020 14:42:52 -0400 Subject: [PATCH] fixes to spear of destiny and astral solution --- Items/Ammo/AstralSolution.cs | 3 ++- Items/Weapons/Rogue/SpearofDestiny.cs | 9 ++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Items/Ammo/AstralSolution.cs b/Items/Ammo/AstralSolution.cs index 22601bac44..fd66b17ec2 100644 --- a/Items/Ammo/AstralSolution.cs +++ b/Items/Ammo/AstralSolution.cs @@ -10,7 +10,8 @@ namespace CalamityMod.Items.Ammo public override void SetStaticDefaults() { DisplayName.SetDefault("Astral Solution"); - Tooltip.SetDefault("Used by the Clentaminator.\nSpreads the Astral."); + Tooltip.SetDefault("Used by the Clentaminator\n" + + "Spreads the Astral Infection"); } public override void SetDefaults() diff --git a/Items/Weapons/Rogue/SpearofDestiny.cs b/Items/Weapons/Rogue/SpearofDestiny.cs index dff97777b8..59978ead10 100644 --- a/Items/Weapons/Rogue/SpearofDestiny.cs +++ b/Items/Weapons/Rogue/SpearofDestiny.cs @@ -37,12 +37,11 @@ namespace CalamityMod.Items.Weapons.Rogue public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - int numProj = 2; - float rotation = MathHelper.ToRadians(3); - for (int i = 0; i < numProj + 1; i++) + int index = 7; + for (int i = -index; i <= index; i += index) { - Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, i == 1 ? type : ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); + Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.ToRadians(i)); + Projectile.NewProjectile(position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, i != 0 ? type : ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; }