Herp derp, i can script coffee

This commit is contained in:
Sabe Jones 2013-12-24 22:07:27 -06:00
parent 6f4427b087
commit 44d738af50
2 changed files with 4 additions and 4 deletions

View file

@ -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') {

View file

@ -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