Reduced Old Lord Oathsword spin velocity and increased time to reach full charge from 60 frames (1 second) to 90 frames (1.5 seconds).

This commit is contained in:
mountaindrew10 committed 2023-03-21 19:29:37 -05:00
1 parent d6304f1956
commit 099bc76e55
1 file changed
+4 -4
+4 -4
View File
@@ -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<OldLordClaymore>();
public override int IntendedProjectileType => ModContent.ProjectileType<OldLordClaymoreProj>();
@@ -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<Texture2D>("CalamityMod/Items/Weapons/Melee/OldLordClaymore").Value;