Anonymous

Module:Skills: Difference between revisions

From Melvor Idle
_buildAstrologyModifierArray: Fix skill/value pair format
(getSmithingTable: Amend category determination)
(_buildAstrologyModifierArray: Fix skill/value pair format)
Line 198: Line 198:
end
end
for j, modifier in ipairs(modTypeData.modifiers) do
for j, modifier in ipairs(modTypeData.modifiers) do
local modEntry = (modifier.skill ~= nil and {modifier.skill, modVal}) or modVal
local modEntry = (modifier.skill ~= nil and { skillID = modifier.skill, value = modVal }) or modVal
addToArray(modArray, {modifier.key, modEntry})
addToArray(modArray, {modifier.key, modEntry})
end
end