Mystery Items 2016/10 (#8169)

* feat(content): mystery items 2016-10

* chore(news): Bailey 2016-10-25
Also ends the Enchanted Armoire A/B test.

* fix(armoire): failing tests from A/B conclusion
This commit is contained in:
Sabe Jones
2016-10-25 16:16:00 -05:00
committed by GitHub
parent be3f61a94b
commit d323be19c6
15 changed files with 48 additions and 19 deletions

View File

@@ -77,13 +77,7 @@ function _setUpNewUser (user) {
let taskTypes;
let iterableFlags = user.flags.toObject();
// A/B Test 2016-09-26: Start with Armoire Enabled?
if (Math.random() < 0.5) {
user.flags.armoireEnabled = true;
user._ABtest = '20160926-armoireEnabled';
} else {
user._ABtest = '20160926-armoireDisabled';
}
user._ABtest = '';
if (user.registeredThrough === 'habitica-web' || user.registeredThrough === 'habitica-android') {
taskTypes = ['habit', 'daily', 'todo', 'reward', 'tag'];