606
edits
m Tag: Manual revert |
m |
||
| Line 126: | Line 126: | ||
--SECTION-PRODUCTION | --SECTION-PRODUCTION | ||
local productionData = {} | local productionData = {} | ||
if buildingData.workers then | |||
local constructionData = {} | |||
for resource, amount in pairs(buildingData.workers) do | |||
local resourceIcon = i.icon(resource, nil, nil, com.firstUpper({resource}), 'en') | |||
table.insert(workersData, {label = resourceIcon, value = amount}) | |||
end | |||
if #constructionData > 0 then | |||
addSection(infobox, workersData, 'Worker info', 2) | |||
end | |||
end | |||
--------------- | |||
if buildingData.workers then | if buildingData.workers then | ||
local workers = buildingData.workers | local workers = buildingData.workers | ||
| Line 134: | Line 145: | ||
table.insert(productionData, {label = 'Workers', value = workers}) | table.insert(productionData, {label = 'Workers', value = workers}) | ||
end | end | ||
----------------- | |||
if buildingData.input then | if buildingData.input then | ||
local input = '' | local input = '' | ||
edits