Module:Progression rainbow/sandbox: Difference between revisions

Content deleted Content added
?
re-simplify
Line 84:
end
else
-- Parameter 9 and others is the total non-project, so exclude
for arg, value in ipairs(args) do
for i = 1,8 do
-- Parameter 9 and others is the total non-project, so exclude
-- 'or 0' to keep us safe from a non-numeric value. Can consider
if arg < 9 then
-- whether to error here.
-- 'or 0' to keep us safe from a non-numeric value. Can consider
classes[i].count = tonumber(args[i]) or 0
-- whether to error here.
sum_classes = sum_classes + classes[arg].count = tonumber(value) or 0
sum_classes = sum_classes + classes[arg].count
end
end
end