606
edits
m Tag: Undo |
m |
||
| Line 126: | Line 126: | ||
--SECTION-PRODUCTION | --SECTION-PRODUCTION | ||
local productionData = {} | local productionData = {} | ||
--draft new workers part based on prosperity | |||
if buildingData.workers then | |||
local workers = {} | |||
for type, value in pairs(buildingData.workers) do | |||
table.insert(workers, {label = com.firstUpper({type}), value = value}) | |||
end | |||
end | |||
--want to replace workers part | |||
if buildingData.workers then | if buildingData.workers then | ||
local workers = buildingData.workers | local workers = buildingData.workers | ||
| Line 134: | Line 141: | ||
table.insert(productionData, {label = 'Workers', value = workers.firstUpper}) | table.insert(productionData, {label = 'Workers', value = workers.firstUpper}) | ||
end | end | ||
-- | |||
if buildingData.input then | if buildingData.input then | ||
local input = '' | local input = '' | ||
edits