606
edits
m |
m |
||
| Line 241: | Line 241: | ||
local costData = {} | local costData = {} | ||
for resource, amount in pairs(buildingData.costs) do | for resource, amount in pairs(buildingData.costs) do | ||
local labelText = com.firstUpper({resource}) | |||
if buildingData.costs['gold coins'] then | if buildingData.costs['gold coins'] then | ||
labelText = com.firstUpper({'build cost'}) | |||
local resourceIcon = i.icon(resource, nil, nil, com.firstUpper({resource}), 'en') | local resourceIcon = i.icon(resource, nil, nil, com.firstUpper({resource}), 'en') | ||
table.insert(costData, {label = resourceIcon, value = amount}) | table.insert(costData, {label = resourceIcon, value = amount}) | ||
| Line 257: | Line 256: | ||
if #costData > 0 then | if #costData > 0 then | ||
addSection(infobox, costData, 'Economic Impact', | addSection(infobox, costData, 'Economic Impact', 3) | ||
end | end | ||
end | end | ||
edits