Formula
CommonFun.calcLotteryCost
function CommonFun.calcLotteryCost(tp, count)
if tp == 2 then
if count == 0 then
return 10
elseif count == 1 then
return 15
elseif count == 2 then
return 20
elseif count == 3 then
return 35
else
return 50
end
end
if tp == 3 then
if count == 0 then
return 15
elseif count == 1 then
return 15
elseif count == 2 then
return 15
elseif count == 3 then
return 30
else
return 30
end
end
return 0
end