2,873
edits
No edit summary |
No edit summary |
||
Line 622: | Line 622: | ||
if barQty > 0 then | if barQty > 0 then | ||
local saleCurrency = item.sellsForCurrency or 'melvorD:GP' | local saleCurrency = item.sellsForCurrency or 'melvorD:GP' | ||
local barVal = | local barVal = Num.round(math.floor(item.sellsFor) * qty / barQty, 1, 1) | ||
table.insert(resultPart, '\n|' .. spanStr .. 'data-sort-value="' .. barVal .. '"| ' .. Icons._Currency(saleCurrency, barVal)) | table.insert(resultPart, '\n|' .. spanStr .. 'data-sort-value="' .. barVal .. '"| ' .. Icons._Currency(saleCurrency, barVal)) | ||
else | else |
edits