Compile rebirth CS into JS, fix Gem price

This commit is contained in:
Sabe Jones
2013-12-24 15:36:03 -06:00
parent a5efa094e8
commit 8d51520b80
2 changed files with 44 additions and 2 deletions
+2 -2
View File
@@ -402,9 +402,9 @@ api.wrap = (user) ->
cb null, req
rebirth: (req, cb) ->
if user.balance < 1
if user.balance < 2
return cb {code:401,message: "Not enough gems."}, req
user.balance--
user.balance -= 2
# Turn tasks yellow, zero out streaks
_.each user.tasks, (task) ->
task.value = 0