diff --git a/routes/socket/badges.js b/routes/socket/badges.js index 7f5bdc900..5b15d8072 100644 --- a/routes/socket/badges.js +++ b/routes/socket/badges.js @@ -15,7 +15,7 @@ const ELO_BADGES = [ const XP_BADGES = [ // XP to badge - [50, 'xp50'], + [10, 'xp10'], [100, 'xp100'], [500, 'xp500'], [1000, 'xp1000'], diff --git a/routes/socket/util.js b/routes/socket/util.js index a66c981f8..a03cc0e99 100644 --- a/routes/socket/util.js +++ b/routes/socket/util.js @@ -333,12 +333,12 @@ module.exports.rateEloGame = (game, accounts, winningPlayerNames) => { account.eloSeason = eloSeason + changeSeason; account.xpSeason = (account.xpSeason || 0) + xpChangeSeason; - if (account.xpOverall >= 50.0) { + if (account.xpOverall >= 10.0) { account.isRainbowOverall = true; account.dateRainbowOverall = new Date(); } - if (account.xpSeason >= 50.0) { + if (account.xpSeason >= 10.0) { account.isRainbowSeason = true; } diff --git a/scripts/eloReset.js b/scripts/eloReset.js index ba956b85d..5d00ac1a1 100644 --- a/scripts/eloReset.js +++ b/scripts/eloReset.js @@ -238,7 +238,7 @@ Account.find({ 'games.0': { $exists: true } }) acc.eloOverall = 1600; acc.xpOverall = preResetGameCount; acc.xpSeason = 0; - acc.isRainbowOverall = acc.xpOverall >= 50.0; + acc.isRainbowOverall = acc.xpOverall >= 10.0; if (acc.isRainbowOverall) { acc.dateRainbowOverall = new Date(); }