Removed 'freeRebirth' from user model and all uses in codebase

This commit is contained in:
hairlessbear
2015-06-13 00:17:26 -04:00
parent 8fe4d9a5a8
commit 4bf1b94c1d
3 changed files with 0 additions and 6 deletions

View File

@@ -1515,8 +1515,6 @@ api.wrap = (user, main=true) ->
dialog: i18n.t('messageFoundQuest', {questText: content.quests[k].text(req.language)}, req.language)
if !user.flags.rebirthEnabled and (user.stats.lvl >= 50 or user.achievements.ultimateGear or user.achievements.beastMaster)
user.flags.rebirthEnabled = true
if user.stats.lvl >= api.maxLevel and !user.flags.freeRebirth
user.flags.freeRebirth = true
###
------------------------------------------------------

View File

@@ -703,9 +703,6 @@ describe 'Cron', ->
user.lastCron = +moment().subtract(1,'days')
# this is hacky but should fix things for the moment
user.flags.freeRebirth = true
paths = {};user.fns.cron {paths}
expect(user.lastCron).to.be.greaterThan 0

View File

@@ -145,7 +145,6 @@ var UserSchema = new Schema({
classSelected: {type: Boolean, 'default': false},
mathUpdates: Boolean,
rebirthEnabled: {type: Boolean, 'default': false},
freeRebirth: {type: Boolean, 'default': false},
levelDrops: {type:Schema.Types.Mixed, 'default':{}},
chatRevoked: Boolean,
// Used to track the status of recapture emails sent to each user,