Skip to content

Commit

Permalink
Update infobox_item_custom.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanopedia authored Oct 17, 2024
1 parent f4c144f commit af6d79e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions components/infobox/wikis/deadlock/infobox_item_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,8 @@ end

---@return string
function CustomItem:_getCostDisplay()
local costs = self:getAllArgsForBase(self.args, 'itemcost')

local innerDiv = CustomItem._costInnerDiv(table.concat(costs, ' / '))
local outerDiv = mw.html.create('div')
:node(AutoInlineIcon.display({onlyicon = true}, 'M', 'Souls')):wikitext(' '):wikitext(tostring(innerDiv))

return tostring(outerDiv)
return tostring(mw.html.create('div')
:node(AutoInlineIcon.display({onlyicon = true}, 'M', 'Souls')):wikitext(' '):wikitext(self.args.itemcost))
end

---@param text string|number|nil
Expand Down

0 comments on commit af6d79e

Please sign in to comment.