Difference between revisions of "Module:OInfobox-Building"

Jump to navigation Jump to search
m
no edit summary
m
m
Line 125: Line 125:
     if buildingData then
     if buildingData then
--SECTION-PRODUCTION
--SECTION-PRODUCTION
         local productionData = {}
         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 = ''
606

edits

Navigation menu