Difference between revisions of "Module:OInfobox-Building"

Jump to navigation Jump to search
m
no edit summary
m
m
Line 243: Line 243:
                 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})
                 if label == 'gold coins' then
                 if resourceIcon == 'gold coins' then
                 table.insert(costData, {label = 'Build Cost', value = buildingData.costs['gold coins']})
                 table.insert(costData, {label = 'Build Cost', value = amount})
                 end
                 end
             end
             end
606

edits

Navigation menu