convert JackOLantern-Base pumpkin pet code to commented-out example code for future use

This commit is contained in:
Alice Harris 2014-11-01 07:30:40 +10:00
parent d9cfe3c370
commit 48cfd1c2a1

View file

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