mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
Attempt to fix bug that turned all tasks into Dailies
This commit is contained in:
parent
f8b1fbda51
commit
50ffe4dcda
2 changed files with 4 additions and 1 deletions
4
dist/habitrpg-shared.js
vendored
4
dist/habitrpg-shared.js
vendored
|
|
@ -11190,7 +11190,9 @@ var process=require("__browserify_process");(function() {
|
|||
}
|
||||
user.balance -= 2;
|
||||
_.each(user.tasks, function(task) {
|
||||
task.value = 0;
|
||||
return task.value = 0;
|
||||
});
|
||||
_.each(user.tasks, function(task) {
|
||||
if (task.type = 'daily') {
|
||||
return task.streak = 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -408,6 +408,7 @@ api.wrap = (user) ->
|
|||
# Turn tasks yellow, zero out streaks
|
||||
_.each user.tasks, (task) ->
|
||||
task.value = 0
|
||||
_.each user.tasks, (task) ->
|
||||
if task.type = 'daily'
|
||||
task.streak = 0
|
||||
# Reset all dynamic stats
|
||||
|
|
|
|||
Loading…
Reference in a new issue