606
edits
m |
m |
||
| Line 242: | Line 242: | ||
for resource, amount in pairs(buildingData.costs) do | for resource, amount in pairs(buildingData.costs) do | ||
local labelText = com.firstUpper({resource}) | local labelText = com.firstUpper({resource}) | ||
local resourceIcon = i.icon(resource, nil, nil, labelText, 'en') | |||
table.insert(costData, {label = resourceIcon, value = amount}) | |||
if resourceIcon == 'gold coins' then | if resourceIcon == 'gold coins' then | ||
labelText = com.firstUpper({'build cost'}) | labelText = com.firstUpper({'build cost'}) | ||
end | end | ||
end | end | ||
| Line 252: | Line 252: | ||
if buildingData.influence['bsplendour'] then | if buildingData.influence['bsplendour'] then | ||
local resourceIcon = i.icon('bsplendour', nil, nil, 'splendor', 'en') | local resourceIcon = i.icon('bsplendour', nil, nil, 'splendor', 'en') | ||
table.insert(costData, {label = ' | table.insert(costData, {label = 'Bonus Splendour', value = buildingData.influence['bsplendour']}) | ||
end | end | ||
edits