2,875
edits
(Add agility requirements) |
(Add firemaking data) |
||
Line 151: | Line 151: | ||
function getAgilityData(realm) | function getAgilityData(realm) | ||
return getAgilityRequirements('Agility', realm) | return getAgilityRequirements('Agility', realm) | ||
end | |||
function getFiremakingData(realm) | |||
local skillID = 'Firemaking' | |||
local data = getDataSet(SkillData.Firemaking.logs, realm) | |||
return Select(data, function(x) | |||
local logs = Items.getItemByID(x.logID) | |||
return UnlockData.new(x.id, logs.name, Skills.getRecipeLevel(skillID, x), skillID) | |||
end) | |||
end | end | ||
Line 247: | Line 257: | ||
function p.test() | function p.test() | ||
local realmName = 'Abyssal Realm' | --local realmName = 'Abyssal Realm' | ||
local realm = Skills.getRealmFromName(realmName) | local realm = Skills.getRealmFromName(realmName) | ||
Debug.log( | Debug.log(getFiremakingData(realm)) | ||
end | end | ||
p.UnlockData = UnlockData | p.UnlockData = UnlockData | ||
return p | return p |
edits