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

Aller à la navigation Aller à la recherche
318 octets ajoutés ,  18 avril 2025 à 23:40
m
aucun résumé de modification
m
Balise : Annulation
m
Ligne 126 : Ligne 126 :
--SECTION-PRODUCTION
--SECTION-PRODUCTION
         local productionData = {}
         local productionData = {}
          
--draft new workers part based on prosperity
if buildingData.workers then
            local workers = {}
            for type, value in pairs(buildingData.workers) do
                table.insert(workers, {label = com.firstUpper({type}), value = value})
            end
         end
        --want to replace workers part
         if buildingData.workers then
         if buildingData.workers then
             local workers = buildingData.workers
             local workers = buildingData.workers
Ligne 134 : Ligne 141 :
             table.insert(productionData, {label = 'Workers', value = workers.firstUpper})
             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