diff --git a/src/app/character.coffee b/src/app/character.coffee index 5d556b6997..abd741743e 100644 --- a/src/app/character.coffee +++ b/src/app/character.coffee @@ -50,7 +50,7 @@ module.exports.app = (appExports, model) -> taskTypes = ['habit', 'daily', 'todo', 'reward'] batch.set 'tasks', {} _.each taskTypes, (type) -> batch.set "#{type}Ids", [] - batch.set 'balance', 2 if user.get('balance') < 2 #only if they haven't manually bought tokens + batch.set 'balance', 1 if user.get('balance') < 1 #only if they haven't manually bought tokens revive(batch) batch.commit() browser.resetDom(model) @@ -97,7 +97,7 @@ userSchema = rewardIds: [] apiToken: null # set in newUserObject below lastCron: 'new' #this will be replaced with `+new Date` on first run - balance: 2 + balance: 1 tasks: {} flags: partyEnabled: false diff --git a/src/app/items.coffee b/src/app/items.coffee index d0337a762a..0c18ce9acd 100644 --- a/src/app/items.coffee +++ b/src/app/items.coffee @@ -149,7 +149,7 @@ module.exports.app = (appExports, model) -> user.set 'items.pet', pet else tokens = user.get('balance')*4 - if tokens > 3 + if tokens > pet.value r = confirm("Buy this pet with #{pet.value} of your #{tokens} tokens?"); if r user.set "items.pets.#{name}", true