Module:Param Parse: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
InvalidCards (talk | contribs) No edit summary |
InvalidCards (talk | contribs) (That's not how math) |
||
Line 199: | Line 199: | ||
function parse.value_func(val) |
function parse.value_func(val) |
||
val = tonumber(val) |
val = tonumber(val) |
||
⚫ | |||
⚫ | |||
local output = '' |
local output = '' |
||
⚫ | |||
if gold > 0 then |
if gold > 0 then |
||
output = gold .. '[[File:Gold coin.png|link=]]' |
output = gold .. '[[File:Gold coin.png|link=]]' |
||
val = val - (gold * 1000000) |
|||
end |
end |
||
⚫ | |||
if silver > 0 then |
if silver > 0 then |
||
output = output .. silver .. '[[File:Silver coin.png|link=]]' |
output = output .. silver .. '[[File:Silver coin.png|link=]]' |
||
val = val - (silver * 1000) |
|||
end |
end |
||
output = output .. |
output = output .. val .. '[[File:Copper coin.png|link=]]' |
||
return output |
return output |
||
end |
end |