From b79c8abc07e037f83fbdbb79db743aa5c4c6145b Mon Sep 17 00:00:00 2001 From: Xyk Date: Mon, 27 Nov 2023 15:52:35 -0800 Subject: [PATCH] Various small changes Wulfrum battery toggle with visibility and dust change Sahara Slicers mixel removal Opal striker tip position to fit new sprite and charge visual improvement Reality rupture visual bugfix and touch ups Spear of Destiny visual bugfix and touch ups --- Items/Accessories/WulfrumBattery.cs | 15 +++++---- Items/Weapons/Melee/SaharaSlicers.png | Bin 3372 -> 3363 bytes .../Mods.CalamityMod.Items.Accessories.hjson | 2 +- ...Mods.CalamityMod.Items.Weapons.Magic.hjson | 2 +- Projectiles/Melee/MurasamaSlash.cs | 1 - Projectiles/Ranged/OpalChargedStrike.cs | 29 ++++++++--------- Projectiles/Ranged/OpalStrikerHoldout.cs | 2 +- Projectiles/Rogue/LanceofDestiny.cs | 15 ++++----- Projectiles/Rogue/RealityRuptureLance.cs | 9 ++++-- Projectiles/Rogue/RealityRuptureMini.cs | 18 +++-------- Projectiles/Rogue/RealityRuptureStealth.cs | 30 +++++++++--------- Projectiles/Rogue/SpearofDestinyProjectile.cs | 18 +++-------- 12 files changed, 61 insertions(+), 80 deletions(-) diff --git a/Items/Accessories/WulfrumBattery.cs b/Items/Accessories/WulfrumBattery.cs index c738506500..178922a042 100644 --- a/Items/Accessories/WulfrumBattery.cs +++ b/Items/Accessories/WulfrumBattery.cs @@ -36,7 +36,8 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { player.GetDamage() += 0.07f; - player.GetModPlayer().battery = true; + if (!hideVisual) + player.GetModPlayer().battery = true; } //Scrappable for 3-6 wulfrum scrap or a 20% chance to get an energy core @@ -66,20 +67,22 @@ namespace CalamityMod.Items.Accessories { if (!projectile.npcProj && !projectile.trap && projectile.minion && !ProjectileID.Sets.MinionShot[projectile.type] && Main.player[projectile.owner].GetModPlayer().battery) { - float lightMult = 2f; + float lightMult = 1f; if (Lighting.UpdateEveryFrame) //The light loks wayyy too bright in retro/trippy - lightMult *= 0.5f; + lightMult *= 0.25f; - Lighting.AddLight(projectile.Center, Color.DeepSkyBlue.ToVector3() * lightMult); + Lighting.AddLight(projectile.Center, Color.LightGreen.ToVector3() * lightMult); - if (Main.rand.NextBool(16)) + if (Main.rand.NextBool(15)) { float size = (projectile.Hitbox.Size() / 2f).Length(); - Dust zapDust = Dust.NewDustPerfect(projectile.Center + Main.rand.NextVector2Circular(1f, 1f) * size, 226, Main.rand.NextVector2Circular(1f, 1f) * Main.rand.NextFloat(1f, 2.3f)); + Dust zapDust = Dust.NewDustPerfect(projectile.Center + Main.rand.NextVector2Circular(1f, 1f) * size, 66, Main.rand.NextVector2Circular(1f, 1f) * Main.rand.NextFloat(0.5f, 1.3f)); zapDust.noGravity = true; + zapDust.color = Main.rand.NextBool() ? Color.SkyBlue : Color.LightGreen; + zapDust.velocity = projectile.velocity * 0.2f; } } } diff --git a/Items/Weapons/Melee/SaharaSlicers.png b/Items/Weapons/Melee/SaharaSlicers.png index d9e2b0847c2ada3d144db6fbd4220985490180b7..aecbe933458073089bb8a97094bbbea0e8a73cc6 100644 GIT binary patch delta 592 zcmV-W0w#gcrkgRwMQN&9L z8h8jyD(GB$3Hm3xtY zp;QL|FQ=9P7om4k{Q%6QCjc1F>;V4`Ea2_LIRI{?`T%&Ie&HC@^ZcAu^4h?Pqb=WRDQ~x^2&t10DD1K=w(qUAn;OQAAtOa?Xtk`LbX_~ zM17Eeo%Lq{cslmZXs<;Pe3iNXaM<`gSl%8FBz@reHv{}Jw{P@w7aA-(D$v#E!vIW9 zuM{0fDN;xqt1@mRcmNJQh~Asc0PKA&0QL>RU8v$gcSF&RM-AJ9(P2g5F4Q(qF#gsb e5T(X<2Kozqf~FrQ3ts&I0000K0m%LjX&_G}}6v}d2& zw&!`iuYI4N-*4nnx+~z1OwQ*bG(ax*rwmubJLtL5UI1=pUjTowTKf85z-_T30l=Ni zNdO+ryajxOUdfyX;AwUmfQR`tVDG>JUPvAS;B;mTfQjssXV4%B$E*gg3#{xETrkB2 z)a3RTdOXnzz|dGYm`nL(0A9{4Z42UTpL5KDFfFgG1e=8uJSCo}~tH5jyeaz2+c zpo;6x=I+lLpdnyi&;=hK=rBIN zDsEJ~-fTYn-Zhl`ht>jXYx}(Zvtqq;>j4Aqs$UD(e9(Hq+9qdH7V4EiU6(+BASRBcHlTN!X~2>wEq>!&)aR@`n}H%5mQ n#b2naAv?SE0-{#?-avl?Tym!$cLiR=00000NkvXXu0mjf7NZ_q diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index fbfeb7cccc..a3032788f3 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1977,7 +1977,7 @@ WulfrumBattery: { DisplayName: Wulfrum Battery Tooltip: ''' - Empowers your summons with wulfrum energy, letting them emit light around them + Empowers your summons with wulfrum energy, letting them emit light around them if visibility is enabled 7% increased summon damage 50% chance to get an extra scrap when killing wulfrum robots Can also be scrapped at an extractinator diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index d8d0c704a0..88881e201c 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -664,7 +664,7 @@ SeethingDischarge: { Serpentine: { DisplayName: Serpentine - Tooltip: + Tooltip: ''' Casts a serpent that follows the mouse cursor Ignores 15 points of enemy Defense diff --git a/Projectiles/Melee/MurasamaSlash.cs b/Projectiles/Melee/MurasamaSlash.cs index b099b231e9..ea5a5226c4 100644 --- a/Projectiles/Melee/MurasamaSlash.cs +++ b/Projectiles/Melee/MurasamaSlash.cs @@ -43,7 +43,6 @@ namespace CalamityMod.Projectiles.Melee Projectile.penetrate = -1; Projectile.tileCollide = false; Projectile.DamageType = TrueMeleeNoSpeedDamageClass.Instance; - Projectile.ownerHitCheck = true; Projectile.usesIDStaticNPCImmunity = true; Projectile.idStaticNPCHitCooldown = 6; Projectile.frameCounter = 0; diff --git a/Projectiles/Ranged/OpalChargedStrike.cs b/Projectiles/Ranged/OpalChargedStrike.cs index faf7b5d975..3276acb60c 100644 --- a/Projectiles/Ranged/OpalChargedStrike.cs +++ b/Projectiles/Ranged/OpalChargedStrike.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; @@ -31,21 +32,19 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { - if (Main.rand.NextBool()) + if (Main.rand.NextBool(3)) { - Vector2 position = Projectile.Center + Vector2.Normalize(Projectile.velocity); - Dust dust = Main.dust[Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 162, 0f, 0f, 0, default, Main.rand.NextFloat(1.2f, 1.5f))]; - dust.position = position; - dust.velocity = Projectile.velocity.RotatedBy(0.2, default) * 0.1f + Projectile.velocity / 8f; - dust.position += Projectile.velocity.RotatedBy(0.2, default); - dust.fadeIn = 0.5f; - dust.noGravity = true; - dust = Main.dust[Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 162, 0f, 0f, 0, default, Main.rand.NextFloat(1.2f, 1.5f))]; - dust.position = position; - dust.velocity = Projectile.velocity.RotatedBy(-0.2, default) * 0.1f + Projectile.velocity / 8f; - dust.position += Projectile.velocity.RotatedBy(-0.2, default); - dust.fadeIn = 0.5f; - dust.noGravity = true; + Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(7, 7), 162); + dust.scale = 1.3f; + dust.velocity = -Projectile.velocity * 0.4f; + } + + Player Owner = Main.player[Projectile.owner]; + float playerDist = Vector2.Distance(Owner.Center, Projectile.Center); + if (Projectile.timeLeft % 2 == 0 && playerDist < 1400f && Projectile.timeLeft < 290) + { + SparkParticle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 3f, -Projectile.velocity * 0.05f, false, 9, 2f, Color.OrangeRed * 0.25f); + GeneralParticleHandler.SpawnParticle(spark); } Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; } diff --git a/Projectiles/Ranged/OpalStrikerHoldout.cs b/Projectiles/Ranged/OpalStrikerHoldout.cs index cf252d1c7d..c43141bd89 100644 --- a/Projectiles/Ranged/OpalStrikerHoldout.cs +++ b/Projectiles/Ranged/OpalStrikerHoldout.cs @@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Ranged } Vector2 armPosition = Owner.RotatedRelativePoint(Owner.MountedCenter, true); - Vector2 tipPosition = armPosition + Projectile.velocity * Projectile.width * 0.85f; + Vector2 tipPosition = (armPosition + Projectile.velocity * Projectile.width * 0.85f) + (Projectile.velocity * 4).RotatedBy(-0.3f * Projectile.direction); if (SoundEngine.TryGetActiveSound(OpalChargeSlot, out var ChargeSound) && ChargeSound.IsPlaying) ChargeSound.Position = Projectile.Center; diff --git a/Projectiles/Rogue/LanceofDestiny.cs b/Projectiles/Rogue/LanceofDestiny.cs index 92ad74b352..20b150e0e5 100644 --- a/Projectiles/Rogue/LanceofDestiny.cs +++ b/Projectiles/Rogue/LanceofDestiny.cs @@ -45,16 +45,11 @@ namespace CalamityMod.Projectiles.Rogue if (!Projectile.Calamity().stealthStrike) Projectile.extraUpdates = 1; - if (Projectile.timeLeft % 5 == 0) + if (Projectile.timeLeft % 2 == 0) { - float radiusFactor = MathHelper.Lerp(0f, 1f, Utils.GetLerpValue(10f, 30f, Time, true)); for (int i = 0; i < 4; i++) { - float offsetRotationAngle = Projectile.velocity.ToRotation() + Time / 20f; - float radius = (20f + (float)Math.Cos(Time / 13f) * 6f) * radiusFactor; - Vector2 dustPosition = Projectile.Center; - dustPosition += offsetRotationAngle.ToRotationVector2().RotatedBy(i / 5f * MathHelper.TwoPi) * radius; - CritSpark spark = new CritSpark(dustPosition, -Projectile.velocity, Color.PaleGoldenrod, Color.Goldenrod, Main.rand.NextFloat(1.1f, 1.5f), Main.rand.Next(5, 8), 5f); + CritSpark spark = new CritSpark(Projectile.Center + Main.rand.NextVector2Circular(10, 10), -Projectile.velocity, Color.PaleGoldenrod, Color.Goldenrod, Main.rand.NextFloat(0.65f, 0.95f), 8, 0, 2.5f); GeneralParticleHandler.SpawnParticle(spark); } } @@ -92,9 +87,11 @@ namespace CalamityMod.Projectiles.Rogue } for (int i = 0; i <= hitsDust; i++) { - Dust dust2 = Main.dust[Dust.NewDust(Projectile.Center, Projectile.width, Projectile.height, Main.rand.NextBool(3) ? 130 : 133, Projectile.oldVelocity.X * Main.rand.NextFloat(1.1f, 1.3f), Projectile.oldVelocity.Y * Main.rand.NextFloat(1.1f, 1.3f), 0, default, 1.1f)]; + Vector2 sparkVelocity = Projectile.velocity.RotatedByRandom(0.3f) * Main.rand.NextFloat(0.6f, 1.5f); + Dust dust = Dust.NewDustPerfect(Projectile.Center + Projectile.velocity, Main.rand.NextBool(3) ? 130 : 133, sparkVelocity, 0, default, Main.rand.NextFloat(1.2f, 1.5f)); + dust.noGravity = true; } - SoundEngine.PlaySound(Hitsound, Projectile.position); + SoundEngine.PlaySound(Hitsound, Projectile.Center); } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) { diff --git a/Projectiles/Rogue/RealityRuptureLance.cs b/Projectiles/Rogue/RealityRuptureLance.cs index 78420910b8..4a65e72002 100644 --- a/Projectiles/Rogue/RealityRuptureLance.cs +++ b/Projectiles/Rogue/RealityRuptureLance.cs @@ -69,11 +69,14 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - for (int i = 0; i <= 4; i++) + for (int i = 0; i <= 13; i++) { - Dust dust2 = Main.dust[Dust.NewDust(target.position, Projectile.width, Projectile.height, Main.rand.NextBool(4) ? 242 : 310, Projectile.oldVelocity.X * Main.rand.NextFloat(1.1f, 1.3f), Projectile.oldVelocity.Y * Main.rand.NextFloat(1.1f, 1.3f), 0, default, 1.1f)]; + Vector2 sparkVelocity = Projectile.velocity.RotatedByRandom(0.25f) * Main.rand.NextFloat(0.3f, 1.8f); + Dust dust = Dust.NewDustPerfect(Projectile.Center - Projectile.velocity * 0.5f, Main.rand.NextBool(4) ? 242 : 310, sparkVelocity, 0, default, Main.rand.NextFloat(2.2f, 3.5f)); + dust.noGravity = true; + dust.fadeIn = 0.5f } - SoundEngine.PlaySound(Hitsound, Projectile.position); + SoundEngine.PlaySound(Hitsound, Projectile.Center); } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) { diff --git a/Projectiles/Rogue/RealityRuptureMini.cs b/Projectiles/Rogue/RealityRuptureMini.cs index c049432ab9..3e7ae26d62 100644 --- a/Projectiles/Rogue/RealityRuptureMini.cs +++ b/Projectiles/Rogue/RealityRuptureMini.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Rogue public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/Item/WulfrumKnifeTileHit2") { PitchVariance = 0.3f, Volume = 0.5f }; public int framesInAir = 0; - public int SparkChance = 7; + public int SparkChance = 1; public override void SetDefaults() { @@ -41,20 +41,10 @@ namespace CalamityMod.Projectiles.Rogue Lighting.AddLight(Projectile.Center + Projectile.velocity * 0.6f, 0.6f, 0.2f, 0.5f); } - if (Main.rand.NextBool(SparkChance)) + if (Projectile.timeLeft % 2 == 0 && Main.rand.NextBool(SparkChance) && Projectile.numHits == 0) { - Vector2 SparkVelocity1 = Projectile.velocity.RotatedBy(-3, default) * 0.1f - Projectile.velocity / 2f; - Vector2 SparkPosition1 = Projectile.velocity.RotatedBy(-0.8, default); - SparkParticle spark = new SparkParticle(Projectile.Center + SparkPosition1, SparkVelocity1, false, Main.rand.Next(6, 8), Main.rand.NextFloat(0.6f, 0.8f), Color.Plum); + SparkParticle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 0.5f, Projectile.velocity * 0.01f, false, 7, 1.3f, Color.Plum * 0.5f); GeneralParticleHandler.SpawnParticle(spark); - - } - if (Main.rand.NextBool(SparkChance)) - { - Vector2 SparkVelocity2 = Projectile.velocity.RotatedBy(3, default) * 0.1f - Projectile.velocity / 2f; - Vector2 SparkPosition2 = Projectile.velocity.RotatedBy(0.8, default); - SparkParticle spark2 = new SparkParticle(Projectile.Center + SparkPosition2, SparkVelocity2, false, Main.rand.Next(6, 8), Main.rand.NextFloat(0.6f, 0.8f), Color.Plum); - GeneralParticleHandler.SpawnParticle(spark2); } Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; @@ -81,7 +71,7 @@ namespace CalamityMod.Projectiles.Rogue if (homeIn) { - SparkChance = 14; + SparkChance = 2; Projectile.extraUpdates = 4; Vector2 moveDirection = Projectile.SafeDirectionTo(center, Vector2.UnitY); Projectile.velocity = (Projectile.velocity * 20f + moveDirection * 12f) / (21f); diff --git a/Projectiles/Rogue/RealityRuptureStealth.cs b/Projectiles/Rogue/RealityRuptureStealth.cs index f56fd91c05..7ba28144a7 100644 --- a/Projectiles/Rogue/RealityRuptureStealth.cs +++ b/Projectiles/Rogue/RealityRuptureStealth.cs @@ -39,28 +39,20 @@ namespace CalamityMod.Projectiles.Rogue public override void AI() { + Player Owner = Main.player[Projectile.owner]; + float playerDist = Vector2.Distance(Owner.Center, Projectile.Center); + Time++; Projectile.velocity *= 1.003f; Projectile.scale = 1.3f; Vector3 DustLight = new Vector3(0.209f, 0.140f, 0.202f); Lighting.AddLight(Projectile.Center, DustLight * 8); - //Lighting.AddLight(Projectile.Center + Projectile.velocity * 0.6f, 0.6f, 0.2f, 0.5f); - if (Time % 2 == 0) + if (Time > 10 && playerDist < 1400f) { - Vector2 SparkVelocity1 = Projectile.velocity.RotatedBy(-2.5f, default) * 0.1f - Projectile.velocity / 2f; - Vector2 SparkPosition1 = Projectile.velocity.RotatedBy(-0.8, default); - SparkParticle spark = new SparkParticle(Projectile.Center + SparkPosition1, SparkVelocity1, false, Main.rand.Next(22, 25), Main.rand.NextFloat(1.2f, 1.9f), Color.Plum); - GeneralParticleHandler.SpawnParticle(spark); - - } - if (Time % 2 == 0) - { - Vector2 SparkVelocity2 = Projectile.velocity.RotatedBy(2.5f, default) * 0.1f - Projectile.velocity / 2f; - Vector2 SparkPosition2 = Projectile.velocity.RotatedBy(0.8, default); - SparkParticle spark2 = new SparkParticle(Projectile.Center + SparkPosition2, SparkVelocity2, false, Main.rand.Next(22, 25), Main.rand.NextFloat(1.2f, 1.9f), Color.Plum); - GeneralParticleHandler.SpawnParticle(spark2); + SparkParticle spark3 = new SparkParticle(Projectile.Center - Projectile.velocity, Projectile.velocity * 0.01f, false, 18, 3.4f, Color.Plum * 0.6f); + GeneralParticleHandler.SpawnParticle(spark3); } Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; } @@ -101,7 +93,15 @@ namespace CalamityMod.Projectiles.Rogue { for (int i = 0; i <= 15; i++) { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 272, Projectile.oldVelocity.X * 0.3f, Projectile.oldVelocity.Y * 0.3f, 0, default, Main.rand.NextFloat(1.7f, 2.1f)); + Vector2 sparkVelocity = Projectile.velocity.RotatedByRandom(0.4f) * Main.rand.NextFloat(0.6f, 1.5f); + Dust dust = Dust.NewDustPerfect(Projectile.Center + Projectile.velocity, 272, sparkVelocity.RotatedByRandom(0.1f), 0, default, Main.rand.NextFloat(1.2f, 1.5f)); + dust.noGravity = true; + + int sparkLifetime = Main.rand.Next(43, 48); + float sparkScale = Main.rand.NextFloat(2.2f, 3f); + Color sparkColor = Color.Plum * 0.8f; + SparkParticle spark = new SparkParticle(Projectile.Center, sparkVelocity, false, sparkLifetime, sparkScale, sparkColor); + GeneralParticleHandler.SpawnParticle(spark); } Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, Color.Plum, new Vector2(2f, 2f), Main.rand.NextFloat(12f, 25f), 0.1f, 1f, 13); GeneralParticleHandler.SpawnParticle(pulse); diff --git a/Projectiles/Rogue/SpearofDestinyProjectile.cs b/Projectiles/Rogue/SpearofDestinyProjectile.cs index ff0585f111..ff055dbf9b 100644 --- a/Projectiles/Rogue/SpearofDestinyProjectile.cs +++ b/Projectiles/Rogue/SpearofDestinyProjectile.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Projectiles.Rogue public int framesInAir = 0; private bool initialized = false; - public int SparkChance = 8; + public int SparkChance = 1; public override void SetDefaults() { @@ -51,20 +51,10 @@ namespace CalamityMod.Projectiles.Rogue } initialized = true; } - if (Main.rand.NextBool(SparkChance)) + if (Projectile.timeLeft % 2 == 0 && Main.rand.NextBool(SparkChance) && Projectile.numHits == 0) { - Vector2 SparkVelocity1 = Projectile.velocity.RotatedBy(-3, default) * 0.1f - Projectile.velocity / 8f; - Vector2 SparkPosition1 = Projectile.velocity.RotatedBy(-0.8, default); - SparkParticle spark = new SparkParticle(Projectile.Center + SparkPosition1, SparkVelocity1, false, Main.rand.Next(6, 8), Main.rand.NextFloat(0.7f, 1f), Color.PaleGoldenrod); + SparkParticle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 0.5f, Projectile.velocity * 0.01f, false, 7, 0.7f, Color.PaleGoldenrod * 0.3f); GeneralParticleHandler.SpawnParticle(spark); - - } - if (Main.rand.NextBool(SparkChance)) - { - Vector2 SparkVelocity2 = Projectile.velocity.RotatedBy(3, default) * 0.1f - Projectile.velocity / 8f; - Vector2 SparkPosition2 = Projectile.velocity.RotatedBy(0.8, default); - SparkParticle spark2 = new SparkParticle(Projectile.Center + SparkPosition2, SparkVelocity2, false, Main.rand.Next(6, 8), Main.rand.NextFloat(0.7f, 1f), Color.PaleGoldenrod); - GeneralParticleHandler.SpawnParticle(spark2); } Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; @@ -91,7 +81,7 @@ namespace CalamityMod.Projectiles.Rogue if (homeIn) { - SparkChance = 16; + SparkChance = 2; Projectile.extraUpdates = 3; Vector2 moveDirection = Projectile.SafeDirectionTo(center, Vector2.UnitY); Projectile.velocity = (Projectile.velocity * 20f + moveDirection * 12f) / (21f);