From 3e55fbd82deae0d3d9134cc2e37374041f9e258d Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sat, 5 Feb 2022 16:18:57 +0100 Subject: [PATCH] Be*m sword buff --- Items/Weapons/Melee/TrueBiomeBlade.cs | 4 +++- .../Melee/MendedBiomeBlade_TruePurityProjection.cs | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Melee/TrueBiomeBlade.cs b/Items/Weapons/Melee/TrueBiomeBlade.cs index f2d191695e..7d21375277 100644 --- a/Items/Weapons/Melee/TrueBiomeBlade.cs +++ b/Items/Weapons/Melee/TrueBiomeBlade.cs @@ -27,7 +27,9 @@ namespace CalamityMod.Items.Weapons.Melee #region stats public static int DefaultAttunement_BaseDamage = 160; - public static int DefaultAttunement_SigilTime = 600; + public static int DefaultAttunement_SigilTime = 1200; + public static int DefaultAttunement_BeamTime = 60; + public static float DefaultAttunement_HomingAngle = MathHelper.PiOver4; public static int EvilAttunement_BaseDamage = 320; public static int EvilAttunement_Lifesteal = 4; diff --git a/Projectiles/Melee/MendedBiomeBlade_TruePurityProjection.cs b/Projectiles/Melee/MendedBiomeBlade_TruePurityProjection.cs index 1c79e63f46..be02bfd8f2 100644 --- a/Projectiles/Melee/MendedBiomeBlade_TruePurityProjection.cs +++ b/Projectiles/Melee/MendedBiomeBlade_TruePurityProjection.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Melee aiType = ProjectileID.LightBeam; projectile.friendly = true; projectile.penetrate = 1; - projectile.timeLeft = 40; + projectile.timeLeft = TrueBiomeBlade.DefaultAttunement_BeamTime; projectile.extraUpdates = 1; projectile.melee = true; projectile.tileCollide = false; @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Melee } } } - else if ((projectile.Center - target.Center).Length() >= (projectile.Center + projectile.velocity - target.Center).Length() && CalamityUtils.AngleBetween(projectile.velocity, target.Center - projectile.Center) < MathHelper.PiOver4 * 0.5f) //Home in + else if ((projectile.Center - target.Center).Length() >= (projectile.Center + projectile.velocity - target.Center).Length() && CalamityUtils.AngleBetween(projectile.velocity, target.Center - projectile.Center) < TrueBiomeBlade.DefaultAttunement_HomingAngle) //Home in { projectile.timeLeft = 30; //Remain alive float angularTurnSpeed = MathHelper.ToRadians(MathHelper.Lerp(12.5f, 2.5f, MathHelper.Clamp(projectile.Distance(target.Center) / 10f, 0f, 1f))); @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Melee projectile.velocity = updatedDirection.ToRotationVector2() * projectile.velocity.Length(); } - if (projectile.timeLeft < 35) + if (projectile.timeLeft < TrueBiomeBlade.DefaultAttunement_BeamTime - 5f) projectile.tileCollide = true; Lighting.AddLight(projectile.Center, 0.75f, 1f, 0.24f); @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Melee public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - if (projectile.timeLeft > 35) + if (projectile.timeLeft > TrueBiomeBlade.DefaultAttunement_BeamTime - 5f) return false; DrawAfterimagesCentered(projectile, ProjectileID.Sets.TrailingMode[projectile.type], lightColor, 1);