diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 9f017064a5..9b62bff05c 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -2020,10 +2020,44 @@ namespace CalamityMod.CalPlayer } if (gShell) //5 seconds of no dash reduction and reduced defense + { + if (giantShellPostHit == 0) + { + float numberOfDusts = 35f; + float rotFactor = 360f / numberOfDusts; + for (int i = 0; i < numberOfDusts; i++) + { + float rot = MathHelper.ToRadians(i * rotFactor); + Vector2 offset = new Vector2(Main.rand.NextFloat(0.5f, 2.5f), 0).RotatedBy(rot * Main.rand.NextFloat(1.1f, 9.1f)); + Vector2 velOffset = new Vector2(Main.rand.NextFloat(0.5f, 2.5f), 0).RotatedBy(rot * Main.rand.NextFloat(1.1f, 9.1f)); + Dust dust = Dust.NewDustPerfect(Player.Center + offset, Main.rand.NextBool() ? 249 : 118, new Vector2(velOffset.X, velOffset.Y)); + dust.noGravity = false; + dust.velocity = velOffset; + dust.scale = Main.rand.NextFloat(1.5f, 1.2f); + } + } giantShellPostHit = 300; + } if (tortShell) //5 seconds of no dash reduction and reduced defense + { + if (tortShellPostHit == 0) + { + float numberOfDusts = 43f; + float rotFactor = 360f / numberOfDusts; + for (int i = 0; i < numberOfDusts; i++) + { + float rot = MathHelper.ToRadians(i * rotFactor); + Vector2 offset = new Vector2(Main.rand.NextFloat(0.5f, 3.1f), 0).RotatedBy(rot * Main.rand.NextFloat(1.1f, 9.1f)); + Vector2 velOffset = new Vector2(Main.rand.NextFloat(0.5f, 3.1f), 0).RotatedBy(rot * Main.rand.NextFloat(1.1f, 9.1f)); + Dust dust = Dust.NewDustPerfect(Player.Center + offset, Main.rand.NextBool() ? 215 : 22, new Vector2(velOffset.X, velOffset.Y)); + dust.noGravity = false; + dust.velocity = velOffset; + dust.scale = Main.rand.NextFloat(1.6f, 2.2f); + } + } tortShellPostHit = 300; + } if (abyssalDivingSuitPlates && hurtInfo.Damage > 50) { diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 44b82610b4..c6d2ba21cd 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -315,7 +315,7 @@ namespace CalamityMod.CalPlayer { if (!HasReducedDashFirstFrame) { - Player.velocity.X *= 0.85f; + Player.velocity.X *= 0.9f; HasReducedDashFirstFrame = true; } } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index dcb9f058d9..51d8bedda6 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -800,7 +800,7 @@ GiantTortoiseShell: { Tooltip: ''' 5% increased damage reduction - 15% reduced dash velocity + 10% reduced dash velocity Taking a hit will remove the dash penalty and reduce defense and damage reduction for 5 seconds ''' }