Anonymous

Module:LevelUpTable/Data: Difference between revisions

From Melvor Idle
Add firemaking data
(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(getAgilityData(realm))
Debug.log(getFiremakingData(realm))
end
end


p.UnlockData = UnlockData
p.UnlockData = UnlockData
return p
return p
2,875

edits