Module:ItemData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Components no longer add to total item cost |
Coerce to number |
||
| Line 46: | Line 46: | ||
local item = get_json_item(item_name) | local item = get_json_item(item_name) | ||
if(item == nil) then return "<span style=\"color:red;\">Item Not Found.</span>" end | if(item == nil) then return "<span style=\"color:red;\">Item Not Found.</span>" end | ||
local cost = 0 | |||
cost = cost + item["Cost"] | |||
return 0 | |||
end | end | ||