Module:Sandbox/GauTest/Township: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 366: Line 366:
for key, name in pairs(stats) do
for key, name 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, p.GetTownshipStatIcon(name)..building.provides[key])
table.insert(benefits, p.GetTownshipStatIcon(name)..' '..building.provides[key])
end
end
end
end
Line 372: Line 372:
table.insert(ret, '\r\n|-\r\n| <b>Provides:</b> '..table.concat(benefits, ', '))
table.insert(ret, '\r\n|-\r\n| <b>Provides:</b> '..table.concat(benefits, ', '))
end
end
-- Production (todo)


-- Modifiers
-- Modifiers
572

edits