Merge pull request #588 from MrConcept/notifications

Properly Cap Deltas
This commit is contained in:
Tyler Renelle 2013-03-05 03:56:06 -08:00
commit 8814ff62b3

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