From 099bc76e55cabe5dc28096518fb9bfcf885a6225 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Tue, 21 Mar 2023 19:29:37 -0500 Subject: [PATCH 1/2] Reduced Old Lord Oathsword spin velocity and increased time to reach full charge from 60 frames (1 second) to 90 frames (1.5 seconds). --- Projectiles/Melee/OldLordClaymoreProj.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Projectiles/Melee/OldLordClaymoreProj.cs b/Projectiles/Melee/OldLordClaymoreProj.cs index 0fd6ba2880..126974d65e 100644 --- a/Projectiles/Melee/OldLordClaymoreProj.cs +++ b/Projectiles/Melee/OldLordClaymoreProj.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Melee public bool LMBUse => Owner.altFunctionUse != 2 && !RMBChannel && Owner.itemAnimation > 0; public ref float ChargePower => ref Projectile.localAI[1]; - public const int MaxChargeTime = 60; + public const int MaxChargeTime = 90; public override string Texture => "CalamityMod/Items/Weapons/Melee/OldLordClaymore"; public override int AssociatedItemID => ModContent.ItemType(); public override int IntendedProjectileType => ModContent.ProjectileType(); @@ -147,7 +147,7 @@ namespace CalamityMod.Projectiles.Melee if (Main.myPlayer == Projectile.owner) { - Owner.velocity = Vector2.Lerp(Owner.velocity, Owner.SafeDirectionTo(Main.MouseWorld) * 23f, 0.125f); + Owner.velocity = Vector2.Lerp(Owner.velocity, Owner.SafeDirectionTo(Main.MouseWorld) * 18f, 0.125f); NetMessage.SendData(MessageID.PlayerControls, -1, -1, null, Main.myPlayer); } @@ -225,7 +225,7 @@ namespace CalamityMod.Projectiles.Melee // Create charge dust. if (CurrentState == SwingState.Channeling) { - int chargeDustCount = (int)Math.Round(MathHelper.Lerp(1f, 3f, ChargePower / 60f)); + int chargeDustCount = (int)Math.Round(MathHelper.Lerp(1f, 3f, ChargePower / MaxChargeTime)); if (ChargePower >= MaxChargeTime) chargeDustCount = 0; @@ -301,7 +301,7 @@ namespace CalamityMod.Projectiles.Melee GameShaders.Misc["CalamityMod:BasicTint"].UseColor(Main.hslToRgb(0.95f, 0.85f, 0.5f)); GameShaders.Misc["CalamityMod:BasicTint"].UseOpacity(0f); if (ChargePower >= MaxChargeTime) - GameShaders.Misc["CalamityMod:BasicTint"].UseOpacity(0.7f - ((Main.GlobalTimeWrappedHourly * 30) % 30f / 60f)); + GameShaders.Misc["CalamityMod:BasicTint"].UseOpacity(0.7f - ((Main.GlobalTimeWrappedHourly * (int)(MaxChargeTime * 0.5f)) % (MaxChargeTime * 0.5f) / MaxChargeTime)); GameShaders.Misc["CalamityMod:BasicTint"].Apply(); var texture = ModContent.Request("CalamityMod/Items/Weapons/Melee/OldLordClaymore").Value; From e6f18dc595122705e0f12a1b4c19af86f54516c7 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Tue, 21 Mar 2023 21:11:17 -0500 Subject: [PATCH 2/2] Old Lord Oathsword charge animation takes longer and reduced the spin velocity again. --- Projectiles/Melee/OldLordClaymoreProj.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Melee/OldLordClaymoreProj.cs b/Projectiles/Melee/OldLordClaymoreProj.cs index 126974d65e..ded4bd6862 100644 --- a/Projectiles/Melee/OldLordClaymoreProj.cs +++ b/Projectiles/Melee/OldLordClaymoreProj.cs @@ -147,7 +147,7 @@ namespace CalamityMod.Projectiles.Melee if (Main.myPlayer == Projectile.owner) { - Owner.velocity = Vector2.Lerp(Owner.velocity, Owner.SafeDirectionTo(Main.MouseWorld) * 18f, 0.125f); + Owner.velocity = Vector2.Lerp(Owner.velocity, Owner.SafeDirectionTo(Main.MouseWorld) * 16f, 0.125f); NetMessage.SendData(MessageID.PlayerControls, -1, -1, null, Main.myPlayer); } @@ -182,7 +182,7 @@ namespace CalamityMod.Projectiles.Melee // Raise the blade and do charge effects upwards if channeling. float horizontalBladeOffset = -4f; - float chargeInterpolant = Utils.GetLerpValue(0f, 35f, ChargeTime, true); + float chargeInterpolant = Utils.GetLerpValue(0f, 65f, ChargeTime, true); if (CurrentState == SwingState.Channeling) { baseRotation = MathHelper.PiOver2 * -Direction;