smashed evil text and icon colors

This commit is contained in:
doze-zoze committed 2026-02-19 15:43:07 -06:00
1 parent 90aa898a58
commit abfa85fbc1
4 files changed
+8 -1

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 607 B

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 607 B

+1 -1
View File
@@ -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<SmashedEvil>()),
("CalamityMod/Buffs/StatBuffs/SmashedEvil", NPC => NPC.HasBuff<SmashedEvil>()),
("CalamityMod/Buffs/StatDebuffs/TemporalSadness", NPC => NPC.Calamity().temporalSadness),
("CalamityMod/Buffs/StatDebuffs/TimeDistortion", NPC => NPC.Calamity().timeDistortion),
("CalamityMod/Buffs/StatDebuffs/WhisperingDeath", NPC => NPC.Calamity().whisperingDeath),
+7
View File
@@ -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<int, List<(Color, float)>> debuffColorWeightsCache = [];
@@ -144,6 +146,11 @@ namespace CalamityMod
{
color = MiracleBlightDebuffColor;
}
else if (debuffId == ModContent.BuffType<SmashedEvil>() && CalamityClientConfig.Instance.TextEffects)
{
color = SmashedEvilDebuffColor;
}
else if (BuffDatasets.DebuffDataset[debuffId] is not null)
{
if (!debuffColorWeightsCache.TryGetValue(debuffId, out var weights))