17,105
edits
(Use printError function) |
(_getRecipeTable: Digit grouping for XP values >= 1000) |
||
Line 246: | Line 246: | ||
return Shared.printError('No such category ' .. categoryName .. ' for skill ' .. skillName .. ', the following are available: ' .. table.concat(catNames, ', ')) | return Shared.printError('No such category ' .. categoryName .. ' for skill ' .. skillName .. ', the following are available: ' .. table.concat(catNames, ', ')) | ||
end | end | ||
local actionInterval = SkillData[skillName].baseInterval/1000 | local actionInterval = SkillData[skillName].baseInterval / 1000 | ||
-- Validation: Skill data | -- Validation: Skill data | ||
Line 322: | Line 322: | ||
table.insert(resultPart, '\r\n|' .. spanStr .. 'style="text-align:right"| ' .. recipe.level) | table.insert(resultPart, '\r\n|' .. spanStr .. 'style="text-align:right"| ' .. recipe.level) | ||
elseif colID == 'SkillXP' then | elseif colID == 'SkillXP' then | ||
table.insert(resultPart, '\r\n|' .. spanStr .. 'style="text-align:right"| ' .. recipe.baseExperience) | table.insert(resultPart, '\r\n|' .. spanStr .. 'data-sort-value="' .. recipe.baseExperience ..'" style="text-align:right"| ' .. Shared.formatnum(recipe.baseExperience)) | ||
elseif colID == 'GP' then | elseif colID == 'GP' then | ||
local val = math.floor(item.sellsFor) | local val = math.floor(item.sellsFor) |