|
@@ -169,13 +169,11 @@ async function save_game_and_update_rating(lobby, game) {
|
|
|
'Legendary',
|
|
|
'The One',
|
|
|
];
|
|
|
- for (const score of game.scores) {
|
|
|
- await update_the_one(score.user_id, score.rating.elo, game.mode_int);
|
|
|
- }
|
|
|
|
|
|
const rank_changes = [];
|
|
|
for (const score of game.scores) {
|
|
|
const player = await get_user_by_id(score.user_id);
|
|
|
+ await update_the_one(score.user_id, score.rating.elo, game.mode_int);
|
|
|
if (player.ratings[game.mode_int].s3_scores < Config.games_needed_for_rank) continue;
|
|
|
|
|
|
const old_rank_text = player.ratings[game.mode_int].division;
|