Module:ItemData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m typo |
move comma formatting to invocation so internal pass is a number |
||
| Line 56: | Line 56: | ||
until cur_item == nil | until cur_item == nil | ||
return | return cost | ||
end | end | ||
| Line 84: | Line 84: | ||
p.get_cost = function(frame) | p.get_cost = function(frame) | ||
local item_name = frame.args[1] | local item_name = frame.args[1] | ||
return get_cost(item_name) | return Format(get_cost(item_name)) | ||
end | end | ||