feat: don't show debuffs with empty tooltips

This commit is contained in:
Stephen T committed 2025-08-06 23:21:53 -05:00
1 parent 0d9753436c
commit fa0c8fea41
1 file changed
+7 -1
+7 -1
View File
@@ -326,6 +326,12 @@ namespace CalamityMod.Items
{
continue;
}
var text = Language.GetTextValue(tooltipKey);
if (string.IsNullOrWhiteSpace(text))
{
continue;
}
foundDebuff = true;
if (!PlayerInput.Triggers.Current.SmartCursor)
@@ -334,7 +340,7 @@ namespace CalamityMod.Items
break;
}
tooltips.Insert(++lastTooltipIndex, new TooltipLine(Mod, "CalamityMod:AltExpandTooltip" + buffId, $"[cbuff:{buffId}]\n{Language.GetTextValue(tooltipKey)}"));
tooltips.Insert(++lastTooltipIndex, new TooltipLine(Mod, "CalamityMod:AltExpandTooltip" + buffId, $"[cbuff:{buffId}]\n{text}"));
}
if (showTheTip)