572
edits
No edit summary |
No edit summary |
||
Line 453: | Line 453: | ||
for key, stat in pairs(stats) do | for key, stat in pairs(stats) do | ||
if building.provides[key] ~= nil and building.provides[key] ~= 0 then | if building.provides[key] ~= nil and building.provides[key] ~= 0 then | ||
table.insert(benefits, Icons.Icon({stat, type='township', notext=true})..' '.. | local quantity = building.provides[key] | ||
if quantity < 0 then | |||
quantity = '<span style="color:red">'..quantity..'</span>' | |||
else | |||
quantity = Shared.numStrWithSign(quantity) | |||
end | |||
table.insert(benefits, Icons.Icon({stat, type='township', notext=true})..' '..quantity) | |||
end | end | ||
end | end |
edits