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

Aller à la navigation Aller à la recherche
m
aucun résumé de modification
m
m
Ligne 240 : Ligne 240 :
if buildingData.costs or buildingData.influence['bsplendour'] then
if buildingData.costs or buildingData.influence['bsplendour'] then
             local costData = {}
             local costData = {}
             for resource, amount in pairs(buildingData.costs) do
             local labelText = com.firstUpper({resource})
                local resourceIcon = i.icon(resource, nil, nil, label, 'en')
            if resource == 'gold coins' then
                table.insert(costData, {label = resourceIcon, value = amount})
        labelText = com.firstUpper({'build cost'})
                if label  == 'gold coins' then
    end
                    label = com.firstUpper({'build cost'})
            local resourceIcon = i.icon(resource, nil, nil, labelText, 'en') -- Use the correctly set labelText
                end
    table.insert(costData, {label = resourceIcon, value = amount})
           
         end
         end
Ligne 257 : Ligne 258 :
                 addSection(infobox, costData, 'Economic Impact', 2)
                 addSection(infobox, costData, 'Economic Impact', 2)
             end
             end
         end
          
         --/
         --/
     end
     end
606

modifications

Menu de navigation