Anonymous

Module:Skills: Difference between revisions

From Melvor Idle
_buildAstrologyModifierArray: Modify group numbers to output mastery level requirement
(Revert recent changes)
Tags: Manual revert Reverted
(_buildAstrologyModifierArray: Modify group numbers to output mastery level requirement)
Line 185: Line 185:
table.insert(modTypes, 'uniqueModifiers')
table.insert(modTypes, 'uniqueModifiers')
end
end
local masteryReq = {
['standardModifiers'] = { 1, 40, 80 },
['uniqueModifiers'] = { 20, 60, 99 }
}


local modArray = {}
local modArray = {}
Line 193: Line 197:
for _, modType in ipairs(modTypes) do
for _, modType in ipairs(modTypes) do
for i, modTypeData in ipairs(cons[modType]) do
for i, modTypeData in ipairs(cons[modType]) do
groupNum = groupNum + 1
groupNum = masteryReq[modType][i]
local modVal = nil
local modVal = nil
if modValue ~= nil then
if modValue ~= nil then