From af6d79e92d38394e16bffafd19cd1afea2ad50ef Mon Sep 17 00:00:00 2001 From: Jasper Jacobs <97167868+Kanopedia@users.noreply.github.com> Date: Thu, 17 Oct 2024 16:33:23 +0200 Subject: [PATCH] Update infobox_item_custom.lua --- .../infobox/wikis/deadlock/infobox_item_custom.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/components/infobox/wikis/deadlock/infobox_item_custom.lua b/components/infobox/wikis/deadlock/infobox_item_custom.lua index 3d4f7855ba5..106313d0c5c 100644 --- a/components/infobox/wikis/deadlock/infobox_item_custom.lua +++ b/components/infobox/wikis/deadlock/infobox_item_custom.lua @@ -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