4,951
edits
(Implement RC function & standardise currency functions) |
Falterfire (talk | contribs) (p._Currency calls now require maxAmt to be greater than amount) |
||
Line 196: | Line 196: | ||
function p._Currency(fileName, link, amt, maxAmt) | function p._Currency(fileName, link, amt, maxAmt) | ||
local amtText = Shared.formatnum(amt) | local amtText = Shared.formatnum(amt) | ||
if maxAmt ~= nil and maxAmt | if maxAmt ~= nil and maxAmt >= amt then | ||
amtText = amtText .. ' - ' .. Shared.formatnum(maxAmt) | amtText = amtText .. ' - ' .. Shared.formatnum(maxAmt) | ||
end | end |