Anonymous

Module:Sandbox/GauTest/Township: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 377: Line 377:
if #production > 0 then
if #production > 0 then
table.insert(ret, '\r\n|-\r\n| <b>Produces:</b><br>')
table.insert(ret, '\r\n|-\r\n| <b>Produces:</b><br>')
local retResources = {}
for _, resource in ipairs(production) do
for _, resource in ipairs(production) do
local retProduction = {}
local retProduction = {}
Line 391: Line 392:
end
end
end
end
table.insert(ret, table.concat(retProduction, ', '))
retProduction = table.concat(retProduction, ', ')
table.insert(ret, '/tick/'..workers..' '..p.GetTownshipStatIcon('Workers'))
table.insert(retProduction, '/tick/'..workers..' '..p.GetTownshipStatIcon('Workers'))
table.insert(retResources, table.concat(retProduction, ', '))
end
end
table.insert(ret, retResources, '<br')
end
end


572

edits