From 2bedc44646c0c083394a63db5f4477aa500bbcd0 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sat, 4 Nov 2023 22:53:40 -0700 Subject: [PATCH] Levi Amber and Slag Pauldron buffs Levi amber dash velocity increased to 20% and reduced dash delay by 33% but no longer gives dr while dashing. Slag Pauldron gives 10% dr while dashing instead of 5% and inflicts armor crunch instead of brimstone flames when you directly hit with the dash effect. --- CalPlayer/CalamityPlayerMiscEffects.cs | 12 +++++++----- .../en-US/Mods.CalamityMod.Items.Accessories.hjson | 7 ++++--- Projectiles/Typeless/LeviAmberDash.cs | 4 ++-- Projectiles/Typeless/PauldronDash.cs | 2 +- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index ae559e4657..51eb6e0cfa 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -229,12 +229,14 @@ namespace CalamityMod.CalPlayer if (lAmbergris) { + if (Player.miscCounter % 3 == 2 && Player.dashDelay > 0) // Reduced dash cooldown by 33% + Player.dashDelay--; + if (Player.dashDelay == -1)// TODO: prevent working with special dashes, this was inconsitent with my old solution so I didn't keep it. not huge deal) { - Player.endurance += 0.05f; if (!HasIncreasedDashFirstFrame) { - Player.velocity.X *= 1.15f; + Player.velocity.X *= 1.2f; Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center + Player.velocity * 1.5f, Vector2.Zero, ModContent.ProjectileType(), 75, 20f, Player.whoAmI); HasIncreasedDashFirstFrame = true; } @@ -255,10 +257,10 @@ namespace CalamityMod.CalPlayer { float sparkscale = (Player.velocity.X * Player.direction * 0.07f); Vector2 SparkVelocity1 = Player.velocity.RotatedBy(Player.direction * 2, default) * 0.1f - Player.velocity / 2f; - SparkParticle spark = new SparkParticle(Player.Center + Player.velocity.RotatedBy(2f * Player.direction) * 1.5f, SparkVelocity1, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool() ? Color.DarkTurquoise : Color.DodgerBlue); + LineParticle spark = new LineParticle(Player.Center + Player.velocity.RotatedBy(2f * Player.direction) * 1.5f, SparkVelocity1, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool() ? Color.DarkTurquoise : Color.DodgerBlue); GeneralParticleHandler.SpawnParticle(spark); Vector2 SparkVelocity2 = Player.velocity.RotatedBy(Player.direction * -2, default) * 0.1f - Player.velocity / 2f; - SparkParticle spark2 = new SparkParticle(Player.Center + Player.velocity.RotatedBy(-2f * Player.direction) * 1.5f, SparkVelocity2, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool() ? Color.DarkTurquoise : Color.DodgerBlue); + LineParticle spark2 = new LineParticle(Player.Center + Player.velocity.RotatedBy(-2f * Player.direction) * 1.5f, SparkVelocity2, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool() ? Color.DarkTurquoise : Color.DodgerBlue); GeneralParticleHandler.SpawnParticle(spark2); } if (Player.miscCounter % 4 == 0 && Player.velocity != Vector2.Zero) //every other frame spawn the hitbox @@ -272,7 +274,7 @@ namespace CalamityMod.CalPlayer { if (Player.dashDelay == -1)// TODO: prevent working with special dashes, this was inconsitent with my old solution so I didn't keep it. not huge deal) { - Player.endurance += 0.05f; + Player.endurance += 0.1f; if (!HasReducedDashFirstFrame) // Dash isn't reduced, this is used to determine the first frame of dashing { SoundEngine.PlaySound(SoundID.DD2_BetsyFireballImpact with { Volume = 0.4f , PitchVariance = 0.4f }, Player.Center); diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index ad85e536f2..a03ae15555 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1001,8 +1001,8 @@ LeviathanAmbergris: { DisplayName: Leviathan Ambergris Tooltip: ''' - 15% increased dash velocity - You gain 5% damage reduction while dashing + 20% increased dash velocity + Delay after dashing is reduced by 33% Your dashes are empowered by water, knocking back and damaging nearby enemies with viscous currents ''' } @@ -1543,7 +1543,8 @@ SlagsplitterPauldron: { DisplayName: Slagsplitter Pauldron Tooltip: ''' - You gain 5% damage reduction while dashing + You gain 10% damage reduction while dashing + Enemies you dash through are afflicted with Armor Crunch Your dashes are empowered by fire, shredding enemies near you with violent explosions ''' } diff --git a/Projectiles/Typeless/LeviAmberDash.cs b/Projectiles/Typeless/LeviAmberDash.cs index 5ea69efa18..af40656994 100644 --- a/Projectiles/Typeless/LeviAmberDash.cs +++ b/Projectiles/Typeless/LeviAmberDash.cs @@ -40,8 +40,8 @@ namespace CalamityMod.Projectiles.Typeless target.velocity.X += 4.2f * Owner.direction; } target.AddBuff(BuffID.Wet, 300); - target.AddBuff(ModContent.BuffType(), 60); - SoundEngine.PlaySound(SoundID.Item85 with { Volume = 0.6f, PitchVariance = 0.4f }, Projectile.Center); + target.AddBuff(ModContent.BuffType(), 180); + SoundEngine.PlaySound(SoundID.Item85 with { Volume = 0.4f, PitchVariance = 0.4f }, Projectile.Center); for (int i = 0; i < 3; ++i) { int bloodLifetime = Main.rand.Next(20, 26); diff --git a/Projectiles/Typeless/PauldronDash.cs b/Projectiles/Typeless/PauldronDash.cs index 6ea9a1883e..6a17b3d5f8 100644 --- a/Projectiles/Typeless/PauldronDash.cs +++ b/Projectiles/Typeless/PauldronDash.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(BuffID.OnFire3, 240); - target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 300); SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode with { Volume = 0.6f, PitchVariance = 0.4f }, Projectile.Center); for (int i = 0; i <= 8; i++)