572
edits
No edit summary |
No edit summary |
||
Line 606: | Line 606: | ||
-- Taken from township.js -> Township.getNextSectionCost | -- Taken from township.js -> Township.getNextSectionCost | ||
function p._GetLandCost(frame) | function p._GetLandCost(frame) | ||
local nthland = frame.args ~= nil and frame.args[1] or frame | local nthland = tonumber(frame.args ~= nil and frame.args[1] or frame) | ||
return p._GetLandCost(nthland) | return p._GetLandCost(nthland) | ||
end | end | ||
Line 621: | Line 621: | ||
-- Currently the max is 2048 land | -- Currently the max is 2048 land | ||
function p.GetCumulativeLandCost(frame) | function p.GetCumulativeLandCost(frame) | ||
local totalLand = frame.args ~= nil and frame.args[1] or frame | local totalLand = tonumber(frame.args ~= nil and frame.args[1] or frame) | ||
return p._GetCumulativeLandCost(totalLand) | return p._GetCumulativeLandCost(totalLand) | ||
end | end |
edits