mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
Merge pull request #588 from MrConcept/notifications
Properly Cap Deltas
This commit is contained in:
commit
8814ff62b3
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
Loading…
Reference in a new issue