Anonymous

Module:Sandbox/GauTest/Township: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 839: Line 839:
table.insert(ret, '\r\n|}')
table.insert(ret, '\r\n|}')
return table.concat(ret)
return table.concat(ret)
end
-- Splits each worship formatted each tier separately to check modifiers more easily
function p.GetSplitWorship()
local out = {}
for _, _worship in ipairs(Township.worships) do
local worship = Shared.clone(_worship)
worship.name = worship.name..' (0%)'
table.insert(out, worship)
for i, checkpoint in ipairs(worship.checkpoints) do
worship = Shared.clone(_worship)
worship.name = worship.name..' ('..Township.worshipCheckpoints[i]..'%)'
worship.modifiers = checkpoint
table.insert(out, worship)
end
end
return out
end
end


return p
return p
572

edits