Skip to content

Commit 8667f5d

Browse files
github-actions[bot]LocalIdentityLocalIdentity
authored
[pob1-port] Fix varList breakdown formatting (#1598)
* Apply changes from PathOfBuildingCommunity/PathOfBuilding#9249 * Remove shrine mod --------- Co-authored-by: LocalIdentity <[email protected]> Co-authored-by: LocalIdentity <[email protected]>
1 parent 6235eb8 commit 8667f5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Classes/CalcBreakdownControl.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ function CalcBreakdownClass:AddModSection(sectionData, modList)
466466
elseif tag.type == "MultiplierThreshold" or tag.type == "StatThreshold" then
467467
desc = "If "..self:FormatVarNameOrList(tag.var or tag.stat, tag.varList or tag.statList)..(tag.upper and " <= " or " >= ")..(tag.thresholdPercent and tag.thresholdPercent.."% " or "")..(tag.threshold or self:FormatModName(tag.thresholdVar or tag.thresholdStat))
468468
elseif tag.type == "SkillName" then
469-
desc = "Skill: "..(tag.skillNameList and table.concat(tag.skillNameList, "/") or tag.skillName)
469+
desc = "Skill: "..(tag.skillNameList and table.concat(tag.skillNameList, " / ") or tag.skillName)
470470
elseif tag.type == "SkillId" then
471471
desc = "Skill: "..build.data.skills[tag.skillId].name
472472
elseif tag.type == "SkillType" then
@@ -503,7 +503,7 @@ function CalcBreakdownClass:FormatModName(modName)
503503
end
504504

505505
function CalcBreakdownClass:FormatVarNameOrList(var, varList)
506-
return var and self:FormatModName(var) or table.concat(varList, "/")
506+
return var and self:FormatModName(var) or self:FormatModName(table.concat(varList, " / "))
507507
end
508508

509509
function CalcBreakdownClass:FormatModBase(mod, base)

0 commit comments

Comments
 (0)