cap deltas

This commit is contained in:
Philip How 2013-03-05 09:51:42 +00:00 committed by Tyler Renelle
parent 17ab9b9a22
commit ce09d72708

View file

@ -57,4 +57,5 @@ module.exports.taskDeltaFormula = (currentValue, direction) ->
else
delta = -Math.min(Math.pow(0.95,currentValue),5)
#console.log("CV = " + currentValue + " Dir = " + direction + " delta = " + delta)
delta = 20 if delta > 20
return delta