From 48ff011ed81f96113a9b2aa77d4eef073cbc4076 Mon Sep 17 00:00:00 2001 From: Dominic Date: Fri, 23 Jul 2021 13:03:19 -0500 Subject: [PATCH] Flicker speed slowdown --- NPCs/SupremeCalamitas/SupremeCalamitas.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 76c73e4f68..1242739ac4 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -2944,7 +2944,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (lifeRatio < 0.05f) flickerPower += 0.1f; float opacity = forcefieldOpacity; - opacity *= MathHelper.Lerp(1f, 1f - flickerPower, (float)Math.Pow(Math.Cos(Main.GlobalTime * MathHelper.Lerp(3f, 9f, flickerPower)), 24D)); + opacity *= MathHelper.Lerp(1f, MathHelper.Max(1f - flickerPower, 0.56f), (float)Math.Pow(Math.Cos(Main.GlobalTime * MathHelper.Lerp(3f, 5f, flickerPower)), 24D)); // During/prior to a charge the forcefield is always darker than usual and thus its intensity is also higher. if (!npc.dontTakeDamage && (willCharge || npc.ai[1] == 2f))