Module:Sandbox/GauTest/Township: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 320: Line 320:
function p._GetTierText(tierlevel)
function p._GetTierText(tierlevel)
local tier = p._GetTierRequirements(tierlevel)
local tier = p._GetTierRequirements(tierlevel)
return '<b>Tier '..tierlevel..'</b><ul><li>'..Icons._SkillReq('Township', tier.level, false)..'</li><li>'..Icons.Icon({'Population', type='township', notext=true})..'&nbsp;'..tier.population..'</li></ul>'
return Icons._SkillReq('Township', tier.level, false)..'<br>'..Icons.Icon({'Population', type='township', notext=true})..'&nbsp;'..tier.population
end
end
Line 342: Line 342:
-- Tier
-- Tier
local tier = p._GetTierText(building.tier)
local tier = p._GetTierText(building.tier)
table.insert(ret, '\r\n|-\r\n| '..tier)
table.insert(ret, '\r\n|-\r\n| <b>Requirements:</b><br>'..tier)


-- Upgrades From
-- Upgrades From
Line 560: Line 560:


-- Tier
-- Tier
table.insert(ret, '\r\n|-\r\n! Tier')
table.insert(ret, '\r\n|-\r\n! Requirements')
for _, building in ipairs(buildingList) do
for _, building in ipairs(buildingList) do
local tier = p._GetTierText(building.tier)
local tier = p._GetTierText(building.tier)
572

edits