Skip to content

Commit

Permalink
feat(infobox): Update stormgate infobox building (#4528)
Browse files Browse the repository at this point in the history
Update infobox_unit_custom.lua
  • Loading branch information
senti authored Aug 15, 2024
1 parent f2aefda commit 6a42892
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/infobox/wikis/stormgate/infobox_unit_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ function CustomUnit:_getDefenseDisplay()
local armor = tonumber(args.armor)

return table.concat(Array.append({},
health and ICON_HP or nil,
health,
ICON_HP,
health or 0,
extraHealth and ('(+' .. extraHealth .. ')') or nil,
armor and ICON_ARMOR or nil,
armor
ICON_ARMOR,
armor or 0
), ' ')
end

Expand All @@ -158,7 +158,7 @@ function CustomUnit:subHeaderDisplay(args)
if string.find(args.subfaction, '1v1') or string.find(args.subfaction, self.pagename) then return end
return tostring(mw.html.create('span')
:css('font-size', '90%')
:wikitext('Hero: ' .. self:_displayCommaSeparatedString(args.subfaction))
:wikitext('Hero: ' .. self:_displayCsvAsPageCsv(args.subfaction))
)
end

Expand Down

0 comments on commit 6a42892

Please sign in to comment.