Anonymous

Module:Sandbox/GauTest/Township: Difference between revisions

From Melvor Idle
Biome Table
No edit summary
(Biome Table)
Line 468: Line 468:
education = 'Education',
education = 'Education',
storage = 'Storage',
storage = 'Storage',
deadStorage = 'Dead Storage'
deadStorage = 'Dead Storage',
worship = 'Worship'
}
}
for key, stat in pairs(stats) do
for key, stat in pairs(stats) do
Line 661: Line 662:
for i=FREE_LAND,Township.maxTownSize,FREE_LAND do
for i=FREE_LAND,Township.maxTownSize,FREE_LAND do
table.insert(ret, '\r\n|-\r\n|'..i..'\r\n|'..Icons.GP(p._GetLandCost(i))..'\r\n|'..Icons.GP(p._GetCumulativeLandCost(i)))
table.insert(ret, '\r\n|-\r\n|'..i..'\r\n|'..Icons.GP(p._GetLandCost(i))..'\r\n|'..Icons.GP(p._GetCumulativeLandCost(i)))
end
table.insert(ret, '\r\n|}')
return table.concat(ret)
end
function p.GetBuildingBiomeTable()
local ret = {}
table.insert(ret, '\r\n{| class="wikitable"')
table.insert(ret, '\r\n{!Building')
for _, biome in ipairs(Township.biomes) do
table.insert(ret, '\r\n!'..biome.name)
end
end
table.insert(ret, '\r\n|}')
table.insert(ret, '\r\n|}')
572

edits