Module:Sandbox/GauTest/Township: Difference between revisions

no edit summary
(Worship V1)
No edit summary
Line 926: Line 926:
function p.GetWorshipTable()
function p.GetWorshipTable()
local function GetCheckpointCell(checkpoint)
local function GetCheckpointCell(checkpoint)
return '\r\n!'..checkpoint..'%<br>'..Icons.Icon({'Worship', type=township, notext=true})..' '..(checkpoint*Township.maxWorship)..'/'..Township.maxWorship
return '\r\n|-\r\n!'..checkpoint..'%<br>'..Icons.Icon({'Worship', type=township, notext=true})..' '..(checkpoint*Township.maxWorship)..'/'..Township.maxWorship
end
end
Line 958: Line 958:


-- Total sum
-- Total sum
table.insert(ret, '\r\n!Total')
table.insert(ret, '\r\n|-\r\n!Total')
for i, checkpoint in ipairs(Township.worshipCheckpoints) do
for i, checkpoint in ipairs(Township.worshipCheckpoints) do
for _, worship in ipairs(Township.worships) do
for _, worship in ipairs(Township.worships) do
572

edits