Difference between revisions of "Module:OInfobox-Building"

Jump to navigation Jump to search
m
no edit summary
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})
                print("checkname:", resource, "Label:", labelText)
                 if resource == 'gold coins' then
                 if resource == 'gold coins' then
                     labelText = com.firstUpper({'build cost'})
                     labelText = com.firstUpper({'build cost'})
                 end
                 end
                print("aftercheckname:", resource, "Label:", labelText)
                 local resourceIcon = i.icon(resource, nil, nil, labelText, 'en')
                 local resourceIcon = i.icon(resource, nil, nil, labelText, 'en')
                 table.insert(costData, {label = resourceIcon, value = amount})
                 table.insert(costData, {label = resourceIcon, value = amount})
606

edits

Navigation menu