From 48cfd1c2a1de9b8a9fa3430e3aaa2fd6e4dde0c7 Mon Sep 17 00:00:00 2001 From: Alice Harris Date: Sat, 1 Nov 2014 07:30:40 +1000 Subject: [PATCH] convert JackOLantern-Base pumpkin pet code to commented-out example code for future use --- src/models/user.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/models/user.js b/src/models/user.js index a0c5913045..263207d48f 100644 --- a/src/models/user.js +++ b/src/models/user.js @@ -413,9 +413,10 @@ UserSchema.pre('save', function(next) { this.achievements.beastMaster = true } - // TODO remove this after 11/01 - if (!this.items.pets['JackOLantern-Base'] && moment().isBefore('2014-11-01')) - this.items.pets['JackOLantern-Base'] = 5; + // EXAMPLE CODE for allowing all existing and new players to be + // automatically granted an item during a certain time period: + // if (!this.items.pets['JackOLantern-Base'] && moment().isBefore('2014-11-01')) + // this.items.pets['JackOLantern-Base'] = 5; //our own version incrementer if (_.isNaN(this._v) || !_.isNumber(this._v)) this._v = 0;