Module:Items: Difference between revisions

no edit summary
(Add function for grabbing item.sellsFor value with mutliplier and rounding parameters)
No edit summary
Line 113: Line 113:
if result == nil and ZeroIfNil then result = 0 end
if result == nil and ZeroIfNil then result = 0 end
return result
return result
end
function p.getItemValueByID(itemID)
local item = p.getItemByID(itemID)
if item == nil then
return 0
end
return p.getItemValue(item['name'])
end
end


2,875

edits