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

Aller à la navigation Aller à la recherche
27 octets ajoutés ,  18 avril 2025 à 23:32
m
aucun résumé de modification
m
m
Ligne 126 : Ligne 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

modifications

Menu de navigation