Différences entre les versions de « Module:OInfobox-Building »

Aller à la navigation Aller à la recherche
505 octets supprimés ,  18 avril 2025 à 23:35
m
aucun résumé de modification
m
Balise : Annulation
m
Balise : Annulation
Ligne 126 : Ligne 126 :
--SECTION-PRODUCTION
--SECTION-PRODUCTION
         local productionData = {}
         local productionData = {}
if buildingData.workers then
          
            local constructionData = {}
            for resource, amount in pairs(buildingData.workers) do
                local resourceIcon = i.icon(resource, nil, nil, com.firstUpper({resource}), 'en')
                table.insert(workersData, {label = resourceIcon, value = amount})
            end
           
            if #constructionData > 0 then
                addSection(infobox, workersData, 'Worker info', 2)
            end
         end
        ---------------
         if buildingData.workers then
         if buildingData.workers then
             local workers = buildingData.workers
             local workers = buildingData.workers
Ligne 143 : Ligne 132 :
                 workers = workers .. ' ' .. buildingData.rank
                 workers = workers .. ' ' .. buildingData.rank
             end
             end
             table.insert(productionData, {label = 'Workers', value = workers})
             table.insert(productionData, {label = 'Workers', value = workers.firstUpper})
         end
         end
         -----------------
          
         if buildingData.input then
         if buildingData.input then
             local input = ''
             local input = ''
606

modifications

Menu de navigation