572
edits
No edit summary |
No edit summary |
||
Line 356: | Line 356: | ||
-- Fixed benefits | -- Fixed benefits | ||
local benefits = {} | local benefits = {} | ||
local stats = { | |||
population = 'Population', | |||
happiness = 'Happiness', | |||
education = 'Education', | |||
storage = 'Storage', | |||
deadStorage = 'Dead Storage' | |||
} | |||
for key, name in pairs(stats) do | |||
if building.provides[key] ~= nil and building.provides[key] ~= 0 then | |||
table.insert(benefits, p.GetTownshipStatIcon(name)..building.provides[key]) | |||
end | |||
if building.provides. | |||
end | end | ||
if #benefits > 0 then | if #benefits > 0 then |
edits