Fix modded chars + new modifiers
This commit is contained in:
1 parent
95e5661f72
commit
41e2901e1d
1 file changed
+4
-3
@@ -347,7 +347,7 @@ local function HealthUpCallback(descObj)
|
||||
-- check if we just made the description blank
|
||||
if descObj.Description:gsub("#", "") == "" then
|
||||
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
|
||||
|
||||
@@ -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)
|
||||
for i = 1, #EID.coopAllPlayers do
|
||||
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)
|
||||
end
|
||||
end
|
||||
@@ -1083,7 +1084,7 @@ local function CoopDifferentEffectCallback(descObj)
|
||||
local differentEffectText = EID:getDescriptionEntry("ConditionalDescs", "Different Effect")
|
||||
for _,v in ipairs(EID.DifferentEffectPlayers) do
|
||||
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
|
||||
displayedChars[v] = true
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user