mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
Herp derp, i can script coffee
This commit is contained in:
parent
6f4427b087
commit
44d738af50
2 changed files with 4 additions and 4 deletions
4
dist/habitrpg-shared.js
vendored
4
dist/habitrpg-shared.js
vendored
|
|
@ -11175,7 +11175,7 @@ var process=require("__browserify_process");(function() {
|
|||
}
|
||||
user.balance--;
|
||||
_.each(user.tasks, function(task) {
|
||||
if (task.type(!'reward')) {
|
||||
if (task.type !== 'reward') {
|
||||
return task.value = 0;
|
||||
}
|
||||
});
|
||||
|
|
@ -11192,7 +11192,7 @@ var process=require("__browserify_process");(function() {
|
|||
}
|
||||
user.balance -= 2;
|
||||
_.each(user.tasks, function(task) {
|
||||
if (task.type(!'reward')) {
|
||||
if (task.type !== 'reward') {
|
||||
task.value = 0;
|
||||
}
|
||||
if (task.type === 'daily') {
|
||||
|
|
|
|||
|
|
@ -397,7 +397,7 @@ api.wrap = (user) ->
|
|||
return cb {code:401,message: "Not enough gems."}, req
|
||||
user.balance--
|
||||
_.each user.tasks, (task) ->
|
||||
if task.type not 'reward'
|
||||
unless task.type is 'reward'
|
||||
task.value = 0
|
||||
user.stats.hp = 50
|
||||
cb null, req
|
||||
|
|
@ -408,7 +408,7 @@ api.wrap = (user) ->
|
|||
user.balance -= 2
|
||||
# Turn tasks yellow, zero out streaks
|
||||
_.each user.tasks, (task) ->
|
||||
if task.type not 'reward'
|
||||
unless task.type is 'reward'
|
||||
task.value = 0
|
||||
if task.type is 'daily'
|
||||
task.streak = 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue