Module:Skills: Difference between revisions

getSmithingTable: Amend category determination
(getThievingSourcesForItem: Fix area unique drops)
(getSmithingTable: Amend category determination)
Line 338: Line 338:


-- Accepts 1 parameter, being either:
-- Accepts 1 parameter, being either:
--  'Smelting', for which a table of all bars is generated, or
--  'Bars', for which a table of all bars is generated, or
--  A bar or tier name, which if valid generates a table of all smithing recipes using that bar/tier
--  A bar or tier name, which if valid generates a table of all smithing recipes using that bar/tier
function p.getSmithingTable(frame)
function p.getSmithingTable(frame)
local tableType = frame.args ~= nil and frame.args[1] or frame
local tableType = frame.args ~= nil and frame.args[1] or frame
tableType = Shared.splitString(tableType, ' ')[1]


-- Has a valid category been passed (by name)?
-- Has a valid category been passed (by name)?