2,873
edits
(Use FunList module) |
(Remove deprecated code) |
||
Line 32: | Line 32: | ||
return 'melvorD:Melvor' | return 'melvorD:Melvor' | ||
end | end | ||
end | end | ||
Line 199: | Line 191: | ||
function getHerbloreData(realm) | function getHerbloreData(realm) | ||
local skillID = 'Herblore' | local skillID = 'Herblore' | ||
return FL.new(SkillData.Herblore.recipes) | return FL.new(SkillData.Herblore.recipes) | ||
:where(function(x) return Skills.getRecipeRealm(x) == realm.id end) | :where(function(x) return Skills.getRecipeRealm(x) == realm.id end) | ||
:select(function(x) | :select(function(x) | ||
local lastPot = | local lastPotID = FL.new(x.potionIDs):last() | ||
local lastPot = Items.getItemByID(lastPotID) | |||
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):toTable() | end):toTable() |
edits