Merge remote-tracking branch 'upstream/develop' into fix-antidotes-from-revert

This commit is contained in:
Xaz16
2019-12-07 22:32:25 +03:00
340 changed files with 33840 additions and 28916 deletions

View File

@@ -6,6 +6,7 @@ import { model as User } from '../models/user';
import common from '../../common';
import { preenUserHistory } from './preening';
import sleep from './sleep';
import { revealMysteryItems } from './payments/subscriptions';
const CRON_SAFE_MODE = nconf.get('CRON_SAFE_MODE') === 'true';
const CRON_SEMI_SAFE_MODE = nconf.get('CRON_SEMI_SAFE_MODE') === 'true';
@@ -75,6 +76,9 @@ function grantEndOfTheMonthPerks (user, now) {
count: 0, offset: 0, trinkets: 0, gemCapExtra: 0,
});
// Award mystery items
revealMysteryItems(user, elapsedMonths);
// 1 for one-month recurring or gift subscriptions; later set to 3 for 3-month recurring, etc.
let planMonthsLength = 1;