572
edits
No edit summary |
No edit summary |
||
Line 348: | Line 348: | ||
-- Tier | -- Tier | ||
local tier = p._GetTierRequirements(building.tier) | local tier = p._GetTierRequirements(building.tier) | ||
table.insert(ret, '\r\n|-\r\n| <b>Tier '..building.tier..'</b><ul><li>'..Icons._SkillReq('Township', tier.level, false)..'</li><li>'..p.GetTownshipStatIcon('Population')..tier.population..'</li></ul>') | table.insert(ret, '\r\n|-\r\n| <b>Tier '..building.tier..'</b><ul><li>'..Icons._SkillReq('Township', tier.level, false)..'</li><li>'..p.GetTownshipStatIcon('Population')..' '..tier.population..'</li></ul>') | ||
-- Upgrades From | -- Upgrades From | ||
table.insert(ret, '\r\n|-\r\n|') | table.insert(ret, '\r\n|-\r\n|') | ||
if building.upgradesFrom ~= nil then | if building.upgradesFrom ~= nil then | ||
local upgradesFromBuilding = | local upgradesFromBuilding = p._GetBuildingByID(building.upgradesFrom) | ||
table.insert(ret, '<b>Upgrades From:</b> '..Icons.Icon({upgradesFromBuilding.name, type='building'})..'<br>') | table.insert(ret, '<b>Upgrades From:</b> '..Icons.Icon({upgradesFromBuilding.name, type='building'})..'<br>') | ||
end | end |
edits