572
edits
No edit summary |
No edit summary |
||
Line 602: | Line 602: | ||
end | end | ||
local FREE_LAND = | local FREE_LAND = Township.sectionSize | ||
-- Gets the cost of the current price of land | -- Gets the cost of the current price of land | ||
-- Taken from township.js -> Township.getNextSectionCost | -- Taken from township.js -> Township.getNextSectionCost | ||
Line 629: | Line 629: | ||
table.insert(ret, '\r\n|- style="text-align:center" \r\n! Total Land \r\n! Single Land Cost \r\n! Total Cost') | table.insert(ret, '\r\n|- style="text-align:center" \r\n! Total Land \r\n! Single Land Cost \r\n! Total Cost') | ||
table.insert(ret, '\r\n|-\r\n|'..FREE_LAND..'\r\n|'..Icons.GP(p.GetLandCost(FREE_LAND))..'\r\n|'..Icons.GP(p.GetCumulativeLandCost(FREE_LAND))) | table.insert(ret, '\r\n|-\r\n|'..FREE_LAND..'\r\n|'..Icons.GP(p.GetLandCost(FREE_LAND))..'\r\n|'..Icons.GP(p.GetCumulativeLandCost(FREE_LAND))) | ||
for i= | for i=FREE_LAND,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 | end |
edits