Formula
CommonFun.calcArtifactMaterialItemCount
function CommonFun.calcArtifactMaterialItemCount(type, num, count)
if type == 1 then
return num
elseif type == 2 then
if count == 0 then
return num
elseif count == 1 then
return num
elseif count == 2 then
return math.ceil(num * 1.5)
else
return num * 2
end
elseif count == 0 then
return num
elseif count == 1 then
return num
elseif count == 2 then
return math.ceil(num * 1.5)
else
return num * 2
end
end