606
edits
m |
m |
||
| Line 125: | Line 125: | ||
if buildingData then | if buildingData then | ||
--SECTION-PRODUCTION | --SECTION-PRODUCTION | ||
local | if buildingData.workers then | ||
-- | local workersData = {} | ||
for type, value in pairs(buildingData.workers) do | |||
table.insert(workersData, {label = com.firstUpper({type}), value = value}) | |||
end | |||
end | |||
--test worker stuff above this line | |||
if buildingData.workers then | if buildingData.workers then | ||
local workers = buildingData.workers | local workers = buildingData.workers | ||
| Line 134: | Line 140: | ||
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