2,875
edits
(Add smithing data) |
(Add artisan skills) |
||
Line 181: | Line 181: | ||
local product = Items.getItemByID(x.productID) | local product = Items.getItemByID(x.productID) | ||
return UnlockData.new(product.id, product.name, Skills.getRecipeLevel(skillID, x), skillID, x.categoryID) | return UnlockData.new(product.id, product.name, Skills.getRecipeLevel(skillID, x), skillID, x.categoryID) | ||
end) | |||
end | |||
function getFletchingData(realm) | |||
local skillID = 'Fletching' | |||
local data = getDataSet(SkillData.Fletching.recipes, realm) | |||
return Select(data, function(x) | |||
local product = Items.getItemByID(x.productID) | |||
return UnlockData.new(product.id, product.name, Skills.getRecipeLevel(skillID, x), skillID) | |||
end) | |||
end | |||
function getCraftingData(realm) | |||
local skillID = 'Crafting' | |||
local data = getDataSet(SkillData.Crafting.recipes, realm) | |||
return Select(data, function(x) | |||
local product = Items.getItemByID(x.productID) | |||
return UnlockData.new(product.id, product.name, Skills.getRecipeLevel(skillID, x), skillID) | |||
end) | |||
end | |||
function getRunecraftingData(realm) | |||
local skillID = 'Runecrafting' | |||
local data = getDataSet(SkillData.Runecrafting.recipes, realm) | |||
return Select(data, function(x) | |||
local product = Items.getItemByID(x.productID) | |||
return UnlockData.new(product.id, product.name, Skills.getRecipeLevel(skillID, x), skillID) | |||
end) | end) | ||
end | end | ||
Line 278: | Line 308: | ||
function p.test() | function p.test() | ||
local realmName = 'Abyssal Realm' | |||
local realm = Skills.getRealmFromName(realmName) | local realm = Skills.getRealmFromName(realmName) | ||
Debug.log( | Debug.log(getRunecraftingData(realm)) | ||
end | end | ||
p.UnlockData = UnlockData | p.UnlockData = UnlockData | ||
return p | return p |
edits