Module:Sandbox/GauTest/Township: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 846: Line 846:
for _, _worship in ipairs(Township.worships) do
for _, _worship in ipairs(Township.worships) do
local worship = Shared.clone(_worship)
local worship = Shared.clone(_worship)
worship.name = worship.name..' (0%)'
worship.namePercent = worship.name..' (0%)'
table.insert(out, worship)
table.insert(out, worship)
for i, checkpoint in ipairs(worship.checkpoints) do
for i, checkpoint in ipairs(worship.checkpoints) do
worship = Shared.clone(_worship)
worship = Shared.clone(_worship)
worship.name = worship.name..' ('..Township.worshipCheckpoints[i]..'%)'
worship.namePercent = worship.name..' ('..Township.worshipCheckpoints[i]..'%)'
worship.modifiers = checkpoint
worship.modifiers = checkpoint
table.insert(out, worship)
table.insert(out, worship)
572

edits