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

Aller à la navigation Aller à la recherche
362 octets ajoutés ,  19 avril 2025 à 00:55
m
aucun résumé de modification
m
m
Ligne 125 : Ligne 125 :
     if buildingData then
     if buildingData then
--SECTION-PRODUCTION
--SECTION-PRODUCTION
--
if buildingData.employees then
if buildingData.employees then
             local employeeData = {}
             local employeeData = {}
Ligne 130 : Ligne 131 :
                 table.insert(employeeData, {label = com.firstUpper({type}), value = value})
                 table.insert(employeeData, {label = com.firstUpper({type}), value = value})
             end
             end
             if #employeeData > 0 then
             if #employeeData > 0 then
                 addSection(infobox, employeeData, 'Prosperity', 2)
                 addSection(infobox, employeeData, 'Employees', 2)
             end
             end
end
        --
      
        local productionData = {}
        if buildingData.workers then
            local workers = buildingData.workers
            if buildingData.rank then
                workers = workers .. ' ' .. buildingData.rank
            end
            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