606
modifications
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 = {} | ||
local labelText = com.firstUpper({resource}) | |||
if resource == 'gold coins' then | |||
labelText = com.firstUpper({'build cost'}) | |||
end | |||
local resourceIcon = i.icon(resource, nil, nil, labelText, 'en') -- Use the correctly set labelText | |||
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 | ||
modifications