2,875
edits
(Add herblore data) |
(Add summoning data) |
||
Line 229: | Line 229: | ||
local lastPot = getLastPotion(x) | local lastPot = getLastPotion(x) | ||
return UnlockData.new(lastPot.id, lastPot.name, Skills.getRecipeLevel(skillID, x), skillID) | return UnlockData.new(lastPot.id, lastPot.name, Skills.getRecipeLevel(skillID, x), skillID) | ||
end) | |||
end | |||
function getSummoningData(realm) | |||
local skillID = 'Summoning' | |||
local data = getDataSet(SkillData.Summoning.recipes, realm) | |||
return Select(data, function(x) | |||
local product = Items.getItemByID(x.productID) | |||
return UnlockData.new(x.id, product.name, Skills.getRecipeLevel(skillID, x), skillID) | |||
end) | end) | ||
end | end | ||
Line 328: | Line 338: | ||
local realmName = 'Abyssal Realm' | local realmName = 'Abyssal Realm' | ||
local realm = Skills.getRealmFromName(realmName) | local realm = Skills.getRealmFromName(realmName) | ||
Debug.log( | Debug.log(getSummoningData(realm)) | ||
end | end | ||
p.UnlockData = UnlockData | p.UnlockData = UnlockData | ||
return p | return p |
edits