mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
convert JackOLantern-Base pumpkin pet code to commented-out example code for future use
This commit is contained in:
parent
d9cfe3c370
commit
48cfd1c2a1
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue