From abfa85fbc14b159db8eab6eccaab73a869f4e791 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Thu, 19 Feb 2026 15:43:07 -0600 Subject: [PATCH] smashed evil text and icon colors --- Buffs/StatBuffs/SmashedEvil.png | Bin 607 -> 665 bytes Buffs/StatBuffs/SmashedEvilDebuff.png | Bin 607 -> 0 bytes NPCs/CalamityGlobalNPC.cs | 2 +- Utilities/ItemUtils.cs | 7 +++++++ 4 files changed, 8 insertions(+), 1 deletion(-) delete mode 100644 Buffs/StatBuffs/SmashedEvilDebuff.png diff --git a/Buffs/StatBuffs/SmashedEvil.png b/Buffs/StatBuffs/SmashedEvil.png index ee597d4cce00dc21f0edf6331a49bf873c5a6707..a75b74f944f386e2ab62ed7f8ff4aafc1ea81eee 100644 GIT binary patch delta 463 zcmcc5GLvTArAD-|rrRPbD+UIJLWOG<78dalF0xXRbEj2Z zIJqV{CZ@VLtfsDd!`qnu|Nq~)duQ&v*)|$UK*gL_&jtc1v63LaV4xHxU|_s-;0Z`! zfk$L90|Vb75M~rr*YIipib|BYMwA5SrRIOG-Lji_ zJV^di86(3BW(Ecrjizj}1*2!Zw&Hhn8z=TDKr?T6x;Tbd_)oojU94Gwhb_UKQ=*Og z-v7|*y2lx-Se6;@oCv}i_ca6iTusd((rI?YMR-xo%_^_-f$^6;E zPxzvR9pj8czXdjUJ`;HMGl@5{AvdWqku!P2#bDVk29^x%@5T*mjAw!}UY5wq96#G* zG{4W9`^l+?yB0+pV>lx5`25^64R3F8-?$|Hei26t#}6;@1K%oI6NDBm{(k)RKlXb9 Xa*~Z4)#eL;o@DTJ^>bP0l+XkK>kGmP delta 405 zcmbQqdY@&2W4%^@Plzi61H;+3|7P9#$JBkxW%u93Gb$U3gT#b|&CJYd8)}mx92S4F zKE>?=R90A{>j|XzN`m}?|04qi*8_J>0A)A}JR*yM3J!xX*AN9$J$6Gq3+c>PD<(b8%5K~I*KF4izVYC2{wAAR@bqB2W?#1pwa*U diff --git a/Buffs/StatBuffs/SmashedEvilDebuff.png b/Buffs/StatBuffs/SmashedEvilDebuff.png deleted file mode 100644 index bbc9b3974ac9b7d04d028dd0b83f8e056cf6da82..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 607 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCilI0(?STf%N~S9si5Mp92}vtczzcG@7Lh!0?&C&cFgxVPIrzz_dA`QTIO!?}=Y z8?^MeBDa2DDIVQ$vqgY$2mcMlyU(V?>?gTe~DWM4f{PeKa diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index ca833ac265..d187218984 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -4968,7 +4968,7 @@ namespace CalamityMod.NPCs ("CalamityMod/Buffs/StatDebuffs/MarkedforDeath", NPC => NPC.Calamity().markedForDeath), ("CalamityMod/Buffs/StatDebuffs/PearlAura", NPC => NPC.Calamity().pearlAura), ("CalamityMod/Buffs/StatDebuffs/ProfanedWeakness", NPC => NPC.Calamity().relicOfResilienceWeakness), - ("CalamityMod/Buffs/StatBuffs/SmashedEvilDebuff", NPC => NPC.HasBuff()), + ("CalamityMod/Buffs/StatBuffs/SmashedEvil", NPC => NPC.HasBuff()), ("CalamityMod/Buffs/StatDebuffs/TemporalSadness", NPC => NPC.Calamity().temporalSadness), ("CalamityMod/Buffs/StatDebuffs/TimeDistortion", NPC => NPC.Calamity().timeDistortion), ("CalamityMod/Buffs/StatDebuffs/WhisperingDeath", NPC => NPC.Calamity().whisperingDeath), diff --git a/Utilities/ItemUtils.cs b/Utilities/ItemUtils.cs index 3c29818724..4efddb7d89 100644 --- a/Utilities/ItemUtils.cs +++ b/Utilities/ItemUtils.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatBuffs; using CalamityMod.DataStructures; using CalamityMod.UI.CalamitasEnchants; using Microsoft.Xna.Framework; @@ -129,6 +130,7 @@ namespace CalamityMod public static Color TypelessDebuffColor => new(230, 202, 250); public static Color VulnHexDebuffColor => new(196, 35, 43); public static Color MiracleBlightDebuffColor => Main.DiscoColor; + public static Color SmashedEvilDebuffColor => Color.Lerp(new Color(162, 88, 231), new Color(221, 66, 97), MathHelper.SmoothStep(0, 1, (MathF.Sin(Main.GlobalTimeWrappedHourly * 2) + 1) * 0.5f)); private static readonly Dictionary> debuffColorWeightsCache = []; @@ -144,6 +146,11 @@ namespace CalamityMod { color = MiracleBlightDebuffColor; } + + else if (debuffId == ModContent.BuffType() && CalamityClientConfig.Instance.TextEffects) + { + color = SmashedEvilDebuffColor; + } else if (BuffDatasets.DebuffDataset[debuffId] is not null) { if (!debuffColorWeightsCache.TryGetValue(debuffId, out var weights))