chore(news): Bailey

and set up A/B test for drop curve
This commit is contained in:
Sabe Jones
2020-06-25 14:29:53 -05:00
parent fc2fb8acc5
commit 2a85f2d27f
7 changed files with 41 additions and 26 deletions

View File

@@ -46,7 +46,8 @@ export default function randomDrop (user, options, req = {}, analytics) {
let chance = min([Math.abs(task.value - 21.27), 37.5]) / 150 + 0.02;
chance *= task.priority // Task priority: +50% for Medium, +100% for Hard
* (1 + Math.max(0, 80 - (5 * user.stats.lvl)) / 100) // Experimental: more at low levels
// A/B test experiment: start users with +75% drops, diminishing by 5% per level gained
* '12345678'.indexOf(user._id.slice(0, 1)) !== -1 ? (1 + Math.max(0, 80 - (5 * user.stats.lvl)) / 100) : 1
* (1 + (task.streak / 100 || 0)) // Streak bonus: +1% per streak
* (1 + statsComputed(user).per / 100) // PERception: +1% per point
* (1 + (user.contributor.level / 40 || 0)) // Contrib levels: +2.5% per level