From 27e4e47c2bd98c6d04259cbaca306bad804ff000 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 21 Feb 2022 12:07:35 +0100 Subject: [PATCH] Parry cooldown extension --- Projectiles/Melee/ArkOfTheAncients_ParryHoldout.cs | 4 ++-- Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs | 2 +- Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs | 2 +- Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Projectiles/Melee/ArkOfTheAncients_ParryHoldout.cs b/Projectiles/Melee/ArkOfTheAncients_ParryHoldout.cs index 6759a5059c..d4019af866 100644 --- a/Projectiles/Melee/ArkOfTheAncients_ParryHoldout.cs +++ b/Projectiles/Melee/ArkOfTheAncients_ParryHoldout.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Melee public override string Texture => "CalamityMod/Items/Weapons/Melee/ArkoftheAncients"; private bool initialized = false; - const float MaxTime = 160; + const float MaxTime = 340; static float ParryTime = 15; public Vector2 DistanceFromPlayer => projectile.velocity * 10 * (1f + ((float)Math.Sin(Timer / ParryTime * MathHelper.Pi) * 0.8f)); public float Timer => MaxTime - projectile.timeLeft; @@ -107,7 +107,7 @@ namespace CalamityMod.Projectiles.Melee //Manage position and rotation projectile.Center = Owner.Center + DistanceFromPlayer ; - projectile.scale = 1.4f + ((float)Math.Sin(Timer / MaxTime * MathHelper.Pi) * 0.6f); //SWAGGER + projectile.scale = 1.4f + ((float)Math.Sin(Timer / 160f * MathHelper.Pi) * 0.6f); //SWAGGER if (Timer > ParryTime) return; diff --git a/Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs b/Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs index 734d24d748..5420714fca 100644 --- a/Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs +++ b/Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Melee public override string Texture => "CalamityMod/Projectiles/Melee/RendingScissorsRight"; private bool initialized = false; - const float MaxTime = 160; + const float MaxTime = 340; static float ParryTime = 15; public Vector2 DistanceFromPlayer => projectile.velocity * 10 + projectile.velocity * 10 * ThrustDisplaceRatio(); public float Timer => MaxTime - projectile.timeLeft; diff --git a/Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs b/Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs index 260715dcde..da475b14ca 100644 --- a/Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs +++ b/Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Melee public override string Texture => "CalamityMod/Projectiles/Melee/RendingScissorsRight"; private bool initialized = false; - const float MaxTime = 160; + const float MaxTime = 340; static float ParryTime = 15; public Vector2 DistanceFromPlayer => projectile.velocity * 10 + projectile.velocity * 10 * ThrustDisplaceRatio(); public float Timer => MaxTime - projectile.timeLeft; diff --git a/Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs b/Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs index 61be93f241..9b91f1a6da 100644 --- a/Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs +++ b/Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Melee public override string Texture => "CalamityMod/Items/Weapons/Melee/TrueArkoftheAncients"; private bool initialized = false; - const float MaxTime = 160; + const float MaxTime = 340; static float ParryTime = 15; public Vector2 DistanceFromPlayer => projectile.velocity * 10 * (1f + ((float)Math.Sin(Timer / ParryTime * MathHelper.Pi) * 0.8f)); public float Timer => MaxTime - projectile.timeLeft; @@ -107,7 +107,7 @@ namespace CalamityMod.Projectiles.Melee //Manage position and rotation projectile.Center = Owner.Center + DistanceFromPlayer ; - projectile.scale = 1.4f + ((float)Math.Sin(Timer / MaxTime * MathHelper.Pi) * 0.6f); //SWAGGER + projectile.scale = 1.4f + ((float)Math.Sin(Timer / 160 * MathHelper.Pi) * 0.6f); //SWAGGER if (Timer > ParryTime) return;