606
modifications
m |
m |
||
| Ligne 241 : | Ligne 241 : | ||
local costData = {} | local costData = {} | ||
for resource, amount in pairs(buildingData.costs) do | for resource, amount in pairs(buildingData.costs) do | ||
local | local labelText = com.firstUpper({resource}) | ||
local finalLabel = labelText | |||
if | if resource == 'gold coins' then | ||
finalLabel = 'Build Cost' -- Rename only in this section | |||
end | end | ||
local resourceIcon = i.icon(resource, nil, nil, labelText, 'en') -- Keep original for icon | |||
table.insert(costData, {label = finalLabel, value = amount}) -- Use finalLabel here | |||
end | end | ||
end | |||
-- Add 'bsplendour' to running costs if it exists | -- Add 'bsplendour' to running costs if it exists | ||
| Ligne 259 : | Ligne 262 : | ||
end | end | ||
--/ | --/ | ||
return infobox | return infobox | ||
end | end | ||
return p | return p | ||
modifications