606
edits
m |
Tag: Undo |
||
| Line 125: | Line 125: | ||
if buildingData then | if buildingData then | ||
--SECTION-PRODUCTION | --SECTION-PRODUCTION | ||
local productionData = {} | |||
if buildingData.employees then | |||
local employeeData = {} | |||
for type, value in pairs(buildingData.employees) do | for type, value in pairs(buildingData.employees) do | ||
table.insert( | table.insert(employeeData, {label = com.firstUpper({type}), value = value}) | ||
end | end | ||
if #employeeData > 0 then | |||
addSection(infobox, employeeData, 'Employees', 2) | |||
if | |||
end | end | ||
end | |||
if buildingData.input then | if buildingData.input then | ||
local input = '' | local input = '' | ||
| Line 169: | Line 166: | ||
if #productionData > 0 then | if #productionData > 0 then | ||
addSection(infobox, productionData, 'Production' | addSection(infobox, productionData, 'Production') | ||
end | end | ||
--/ | --/ | ||
edits