From fb5e4d2779292d0dd7a256274145dc8dfc762e2d Mon Sep 17 00:00:00 2001 From: kittenchilly Date: Sun, 17 Aug 2025 10:05:21 -0500 Subject: [PATCH] Fix non-red heart characters not replacing empty heart container descriptions (#898) --- features/eid_modifiers.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/eid_modifiers.lua b/features/eid_modifiers.lua index 2df0f0b4..47dc9c34 100644 --- a/features/eid_modifiers.lua +++ b/features/eid_modifiers.lua @@ -324,8 +324,9 @@ local function HealthUpCallback(descObj) local pos = 1 while pos <= #text do - -- replace {1} with the number of hearts and {2} with the plural character + -- replace {1} with the number of hearts and {pluralize} with the plural character local toFind = EID:ReplaceVariableStr(text[pos], numHearts) + toFind = EID:TryPluralizeString(toFind, numHearts) if text[pos + 1] then local replaceWith = EID:ReplaceVariableStr(text[pos + 1], numHearts) descObj.Description = EID:SimpleReplace(descObj.Description, tostring(toFind), replaceWith, 1)