Module:Skills/Gathering: Difference between revisions

getFishTable: Correct sort order for Cooking level column
(J/K thieving minimum GP is actually 1, code was misread. Undo revision 51446 by Falterfire (talk))
Tag: Undo
(getFishTable: Correct sort order for Cooking level column)
Line 316: Line 316:
local XPs = recipe.baseXP / timeSortVal
local XPs = recipe.baseXP / timeSortVal
local GPs = fish.sellsFor / timeSortVal
local GPs = fish.sellsFor / timeSortVal
local cookSortVal = cookReq[recipe.itemID] or 0
local cookStr = cookReq[recipe.itemID] or 'N/A'
local cookStr = cookReq[recipe.itemID] or 'N/A'
table.insert(resultPart, '\r\n|-')
table.insert(resultPart, '\r\n|-')
Line 326: Line 327:
table.insert(resultPart, '\r\n|style="text-align:right"| ' .. Shared.round(XPs, 2, 2))
table.insert(resultPart, '\r\n|style="text-align:right"| ' .. Shared.round(XPs, 2, 2))
table.insert(resultPart, '\r\n|data-sort-value="' .. GPs .. '"|' .. Icons.GP(Shared.round(GPs, 2, 2)))
table.insert(resultPart, '\r\n|data-sort-value="' .. GPs .. '"|' .. Icons.GP(Shared.round(GPs, 2, 2)))
table.insert(resultPart, '\r\n|style="text-align:right"| ' .. cookStr)
table.insert(resultPart, '\r\n|style="text-align:right" data-sort-value="' .. cookSortVal .. '"| ' .. cookStr)
end
end
end
end