Module:Sandbox/GauTest/Township: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 339: Line 339:
-- Upgrades From
-- Upgrades From
table.insert(ret, '\r\n|-\r\n|Base Cost')
table.insert(ret, '\r\n|-\r\n| <b>Base Cost:</b>')
if building.upgradesFrom ~= nil then
if building.upgradesFrom ~= nil then
local upgradesFromBuilding = p._GetBuildingByID(building.upgradesFrom)
local upgradesFromBuilding = p._GetBuildingByID(building.upgradesFrom)
Line 389: Line 389:
local production = p._GetBuildingBaseProduction(building)
local production = p._GetBuildingBaseProduction(building)
if production ~= nil then
if production ~= nil then
table.insert(ret, '\r\n|-\r\n| <b>Base Production:</b><br>')
table.insert(ret, '\r\n|-\r\n| <b>Base Production per :'..Icons.Icon({'Workers', type='township', notext=true})..'</b><br>')
table.insert(ret, production)
table.insert(ret, production)
end
end
572

edits