diff --git a/Items/Weapons/Magic/AuguroftheVoid.cs b/Items/Weapons/Magic/AuguroftheVoid.cs index d8d00fdbc0..6b863edfb4 100644 --- a/Items/Weapons/Magic/AuguroftheVoid.cs +++ b/Items/Weapons/Magic/AuguroftheVoid.cs @@ -36,27 +36,15 @@ namespace CalamityMod.Items.Weapons.Magic public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - Vector2 realPlayerPos = player.RotatedRelativePoint(player.MountedCenter, true); - float mouseXDist = (float)Main.mouseX + Main.screenPosition.X - realPlayerPos.X; - float mouseYDist = (float)Main.mouseY + Main.screenPosition.Y - realPlayerPos.Y; - Vector2 tentacleVelocity = new Vector2(mouseXDist, mouseYDist); - tentacleVelocity.Normalize(); - Vector2 tentacleRandVelocity = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - tentacleRandVelocity.Normalize(); - tentacleVelocity = tentacleVelocity * 6f + tentacleRandVelocity; - tentacleVelocity.Normalize(); - tentacleVelocity *= Item.shootSpeed; - float tentacleYDirection = (float)Main.rand.Next(10, 50) * 0.001f; + Vector2 spreadVelocity = velocity.RotatedByRandom(MathHelper.ToRadians(18f)) * Main.rand.NextFloat(0.8f, 1.2f); + float tentacleYDirection = Main.rand.NextFloat(0.01f, 0.05f); if (Main.rand.NextBool()) - { tentacleYDirection *= -1f; - } - float tentacleXDirection = (float)Main.rand.Next(10, 50) * 0.001f; + float tentacleXDirection = Main.rand.NextFloat(0.01f, 0.05f); if (Main.rand.NextBool()) - { tentacleXDirection *= -1f; - } - Projectile.NewProjectile(source, realPlayerPos, tentacleVelocity, type, damage, knockback, player.whoAmI, tentacleXDirection, tentacleYDirection); + + Projectile.NewProjectile(source, position, spreadVelocity, type, damage, knockback, Main.myPlayer, tentacleXDirection, tentacleYDirection); return false; } diff --git a/Items/Weapons/Magic/EldritchTome.cs b/Items/Weapons/Magic/EldritchTome.cs index 912d223f4b..3021f53ee0 100644 --- a/Items/Weapons/Magic/EldritchTome.cs +++ b/Items/Weapons/Magic/EldritchTome.cs @@ -35,31 +35,15 @@ namespace CalamityMod.Items.Weapons.Magic public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - int i = Main.myPlayer; - float playerKnockback = knockback; - playerKnockback = player.GetWeaponKnockback(Item, playerKnockback); - player.itemTime = Item.useTime; - Vector2 realPlayerPos = player.RotatedRelativePoint(player.MountedCenter, true); - float mouseXDist = (float)Main.mouseX + Main.screenPosition.X - realPlayerPos.X; - float mouseYDist = (float)Main.mouseY + Main.screenPosition.Y - realPlayerPos.Y; - Vector2 tentacleVelocity = new Vector2(mouseXDist, mouseYDist); - tentacleVelocity.Normalize(); - Vector2 tentacleRandVelocity = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - tentacleRandVelocity.Normalize(); - tentacleVelocity = tentacleVelocity * 4f + tentacleRandVelocity; - tentacleVelocity.Normalize(); - tentacleVelocity *= Item.shootSpeed; - float tentacleYDirection = (float)Main.rand.Next(10, 80) * 0.001f; + Vector2 spreadVelocity = velocity.RotatedByRandom(MathHelper.ToRadians(18f)) * Main.rand.NextFloat(0.8f, 1.2f); + float tentacleYDirection = Main.rand.NextFloat(0.01f, 0.05f); if (Main.rand.NextBool()) - { tentacleYDirection *= -1f; - } - float tentacleXDirection = (float)Main.rand.Next(10, 80) * 0.001f; + float tentacleXDirection = Main.rand.NextFloat(0.01f, 0.05f); if (Main.rand.NextBool()) - { tentacleXDirection *= -1f; - } - Projectile.NewProjectile(source, realPlayerPos, tentacleVelocity, ModContent.ProjectileType(), damage, playerKnockback, i, tentacleXDirection, tentacleYDirection); + + Projectile.NewProjectile(source, position, spreadVelocity, type, damage, knockback, Main.myPlayer, tentacleXDirection, tentacleYDirection); return false; } } diff --git a/Projectiles/Melee/OmnibladeSwing.cs b/Projectiles/Melee/OmnibladeSwing.cs index 06e65b81d6..d7bb4b4043 100644 --- a/Projectiles/Melee/OmnibladeSwing.cs +++ b/Projectiles/Melee/OmnibladeSwing.cs @@ -19,9 +19,8 @@ namespace CalamityMod.Projectiles.Melee public override void SetDefaults() { - Projectile.width = 246; + Projectile.width = 308; Projectile.height = 184; - Projectile.scale = 1.15f; Projectile.friendly = true; Projectile.penetrate = -1; @@ -49,16 +48,17 @@ namespace CalamityMod.Projectiles.Melee } // Rotation and directioning. + Projectile.rotation = Owner.gravDir == -1f ? MathHelper.Pi : 0f; Projectile.direction = (Projectile.velocity.X > 0).ToDirectionInt(); // Sprite and player directioning. - Projectile.spriteDirection = -Projectile.direction; + Projectile.spriteDirection = Projectile.direction * (int)(Owner.gravDir); if (Projectile.direction == 1) Projectile.Left = Owner.MountedCenter; else Projectile.Right = Owner.MountedCenter; - Projectile.position.X += Projectile.spriteDirection == -1 ? -116f : 88f; - Projectile.position.Y -= Projectile.scale * 66f; + Projectile.position.X += (Projectile.spriteDirection == 1 ? -92f : 96f) * Owner.gravDir; + Projectile.position.Y -= 80f * Owner.gravDir; Owner.ChangeDir(Projectile.direction); // Prevents the projectile from dying diff --git a/Projectiles/Melee/OmnibladeSwing.png b/Projectiles/Melee/OmnibladeSwing.png index bb0103db68..6fc79d67b1 100644 Binary files a/Projectiles/Melee/OmnibladeSwing.png and b/Projectiles/Melee/OmnibladeSwing.png differ