From a7e1b4b0932e703bd0a01ac148d08a5871bbb793 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Mon, 6 Oct 2025 13:08:15 -0400 Subject: [PATCH] Squash n' stretch no longer fps dependent --- Projectiles/Rogue/PumpkaboomBig.cs | 8 ++++++-- Projectiles/Rogue/PumpkaboomSmall.cs | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Projectiles/Rogue/PumpkaboomBig.cs b/Projectiles/Rogue/PumpkaboomBig.cs index 762adf4f3b..47e91430d4 100644 --- a/Projectiles/Rogue/PumpkaboomBig.cs +++ b/Projectiles/Rogue/PumpkaboomBig.cs @@ -89,6 +89,12 @@ namespace CalamityMod.Projectiles.Rogue Color nextColor = eColors[(colorIndex + 1) % eColors.Count]; mainColor = Color.Lerp(currentColor, nextColor, rate % 2f > 1f ? 1f : rate % 1f); + // Progress through squash n stretch anim on hit + if (progress >= 0f && progress < 1f) + { + progress += 0.08f; + } +             // When an NPC is hit by the bomb, stick to it.             if (stuck) { @@ -330,8 +336,6 @@ namespace CalamityMod.Projectiles.Rogue if (progress >= 0f) { - progress += 0.02f; - float stretchFactorX, stretchFactorY; if (progress < 0.5f) // Stretch diff --git a/Projectiles/Rogue/PumpkaboomSmall.cs b/Projectiles/Rogue/PumpkaboomSmall.cs index 86484c4ba2..fddd7a4c50 100644 --- a/Projectiles/Rogue/PumpkaboomSmall.cs +++ b/Projectiles/Rogue/PumpkaboomSmall.cs @@ -88,6 +88,12 @@ namespace CalamityMod.Projectiles.Rogue Color nextColor = eColors[(colorIndex + 1) % eColors.Count]; mainColor = Color.Lerp(currentColor, nextColor, rate % 2f > 1f ? 1f : rate % 1f); + // Progress through squash n stretch anim on hit + if (progress >= 0f && progress < 1f) + { + progress += 0.08f; + } +             // When an NPC is hit by the bomb, stick to it.             if (stuck) { @@ -296,8 +302,6 @@ namespace CalamityMod.Projectiles.Rogue if (progress >= 0f) { - progress += 0.02f; - float stretchFactorX, stretchFactorY; if (progress < 0.5f) // Stretch