mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
Update src/app/scoring.coffee
This commit is contained in:
parent
e4d43846f6
commit
72a39a01e1
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ score = (taskId, direction, times, update) ->
|
|||
# Don't adjust values for rewards
|
||||
calculateDelta(false)
|
||||
# purchase item
|
||||
money -= taskObj.value
|
||||
money -= Math.abs(taskObj.value)
|
||||
num = parseFloat(taskObj.value).toFixed(2)
|
||||
# if too expensive, reduce health & zero money
|
||||
if money < 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue