4,683
edits
(Move stronghold and abyss depth pets into "Boss" category instead of "Other") |
(Changed Ores & Bars nav to show all ores and bars and sorted by (abyssalLevel+120 or level) to push ItA items to the end) |
||
Line 491: | Line 491: | ||
local barOreIDs = {} | local barOreIDs = {} | ||
-- Compile list of bars | -- Compile list of bars | ||
for i, recipe in ipairs(SkillData.Smithing.recipes) do | for i, recipe in ipairs(SkillData.Smithing.recipes) do | ||
if Shared.contains({'melvorD:Bars','melvorItA:AbyssalBars'}, recipe.categoryID) then | if Shared.contains({'melvorD:Bars','melvorItA:AbyssalBars'}, recipe.categoryID) then | ||
Line 497: | Line 496: | ||
if item ~= nil then | if item ~= nil then | ||
local displayName = string.gsub(item.name, ' Bar$', '') | local displayName = string.gsub(item.name, ' Bar$', '') | ||
local level = recipe.level | |||
if recipe.abyssalLevel then | |||
level = recipe.abyssalLevel + 120 | |||
if | |||
end | end | ||
table.insert(categoryItems['Bars'], { ["name"] = item.name, ["display"] = displayName, ["order"] = level }) | |||
end | end | ||
end | end | ||
Line 509: | Line 506: | ||
-- Compile list of ores | -- Compile list of ores | ||
for i, recipe in ipairs(SkillData.Mining.rockData) do | for i, recipe in ipairs(SkillData.Mining.rockData) do | ||
local item = Items.getItemByID(recipe.productId) | |||
if item ~= nil then | |||
local level = recipe.level | |||
table.insert(categoryItems['Ores'], { ["name"] = item.name, ["display"] = recipe.name, ["order"] = | if recipe.abyssalLevel then | ||
level = recipe.abyssalLevel + 120 | |||
end | |||
table.insert(categoryItems['Ores'], { ["name"] = item.name, ["display"] = recipe.name, ["order"] = level }) | |||
end | end | ||
end | end |