Anonymous

Module:Skills/Gathering: Difference between revisions

From Melvor Idle
Implement Astrology constellation functions
(getThievingNPCTable: Add GP column)
(Implement Astrology constellation functions)
Line 12: Line 12:
local thievingNormalLootChance = 75
local thievingNormalLootChance = 75
local thievingAreaLootChance = 0.2
local thievingAreaLootChance = 0.2
function p.getConstellationByID(constID)
return SkillData.Astrology.Constellations[constID]
end
function p.getConstellation(constName)
for i, const in ipairs(SkillData.Astrology.Constellations) do
if const.name == constName then
return const
end
end
return nil
end
function p.getConstellations(checkFunc)
local result = {}
for i, const in ipairs(SkillData.Astrology.Constellations) do
if checkFunc(const) then
table.insert(result, const)
end
end
return result
end


function p.getAxeTable(frame)
function p.getAxeTable(frame)