Difference between revisions of "Module:OInfobox-Building"

Jump to navigation Jump to search
m
no edit summary
m
m
Line 126: Line 126:
--SECTION-PRODUCTION
--SECTION-PRODUCTION
         if buildingData.workers then
         if buildingData.workers then
             local workersData = {}
             local workers = buildingData.workers
             for type, value in pairs(buildingData.workers) do
             if buildingData.rank then
                 table.insert(workersData, {label = com.firstUpper({type}), value = value})
                 workers = workers .. ' ' .. buildingData.rank
             end
             end
              
             table.insert(productionData, {label = 'Workers', value = workers})
         end
         end
          
          
606

edits

Navigation menu