4,951
edits
Falterfire (talk | contribs) (Trying a slightly different format to hopefully fix a lack of linebreaks that's happening on FEZ use table for some reason.) |
Falterfire (talk | contribs) (fixed formatting hopefully) |
||
Line 437: | Line 437: | ||
end | end | ||
result = result..'||' | result = result..'||' | ||
for i, mat in | for i, mat in Shared.skpairs(row.mats) do | ||
local matID = mat.id ~= nil and mat.id or mat[1] | local matID = mat.id ~= nil and mat.id or mat[1] | ||
local matQty = mat.qty ~= nil and mat.qty or mat[2] | local matQty = mat.qty ~= nil and mat.qty or mat[2] | ||
matItem = Items.getItemByID(matID) | matItem = Items.getItemByID(matID) | ||
if i > 1 then result = result..' | if i > 1 then result = result..'<br/>' end | ||
result = result..Icons.Icon({matItem.name, type='item', qty=matQty}) | result = result..Icons.Icon({matItem.name, type='item', qty=matQty}) | ||
end | end |