572
edits
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 | ||
retProduction = table.concat(retProduction, ', ') | |||
table.insert( | table.insert(retProduction, '/tick/'..workers..' '..p.GetTownshipStatIcon('Workers')) | ||
table.insert(retResources, table.concat(retProduction, ', ')) | |||
end | end | ||
table.insert(ret, retResources, '<br') | |||
end | end | ||
edits