Fix modded chars + new modifiers

This commit is contained in:
Buurazu authored and GitHub committed 2024-09-10 07:10:23 -04:00
1 parent 95e5661f72
commit 41e2901e1d
1 file changed
+4 -3
+4 -3
View File
@@ -347,7 +347,7 @@ local function HealthUpCallback(descObj)
-- check if we just made the description blank -- check if we just made the description blank
if descObj.Description:gsub("#", "") == "" then if descObj.Description:gsub("#", "") == "" then
local noEffectStr = EID:getDescriptionEntry("ConditionalDescs", "No Effect") local noEffectStr = EID:getDescriptionEntry("ConditionalDescs", "No Effect")
descObj.Description = "{{Player" .. playerType .. "}} " .. EID:ReplaceVariableStr(noEffectStr, "{{NameOnlyI" .. playerType .. "}}") descObj.Description = EID:GetPlayerIcon(playerType) .. " " .. EID:ReplaceVariableStr(noEffectStr, EID:getPlayerName(playerType))
end end
end end
@@ -355,7 +355,8 @@ local function HealthUpCallback(descObj)
-- todo: this simple check could have false positives (i.e. Yum Heart is identical for Soul and Black, but this thinks they'll be different) -- todo: this simple check could have false positives (i.e. Yum Heart is identical for Soul and Black, but this thinks they'll be different)
for i = 1, #EID.coopAllPlayers do for i = 1, #EID.coopAllPlayers do
local t = EID.coopAllPlayers[i]:GetPlayerType() local t = EID.coopAllPlayers[i]:GetPlayerType()
if EID.CharacterToHeartType[t] ~= heartType then local playerHeartType = EID.CharacterToHeartType[t] or "Red"
if playerHeartType ~= heartType then
table.insert(EID.DifferentEffectPlayers, t) table.insert(EID.DifferentEffectPlayers, t)
end end
end end
@@ -1083,7 +1084,7 @@ local function CoopDifferentEffectCallback(descObj)
local differentEffectText = EID:getDescriptionEntry("ConditionalDescs", "Different Effect") local differentEffectText = EID:getDescriptionEntry("ConditionalDescs", "Different Effect")
for _,v in ipairs(EID.DifferentEffectPlayers) do for _,v in ipairs(EID.DifferentEffectPlayers) do
if not displayedChars[v] then if not displayedChars[v] then
descObj.Description = descObj.Description .. "#{{Player" .. v .. "}} " .. EID:ReplaceVariableStr(differentEffectText, "{{NameOnlyI" .. v .. "}}") descObj.Description = descObj.Description .. "#" .. EID:GetPlayerIcon(v) .. " " .. EID:ReplaceVariableStr(differentEffectText, EID:getPlayerName(v))
end end
displayedChars[v] = true displayedChars[v] = true
end end