From de280df4976b8c0e8a3bf48c729794e35570ee11 Mon Sep 17 00:00:00 2001 From: meooow Date: Sat, 28 Sep 2024 20:10:24 +0530 Subject: [PATCH] Add Tourist rank (4000+) --- carrot/src/background/predict-response.js | 2 +- carrot/src/background/rank.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/carrot/src/background/predict-response.js b/carrot/src/background/predict-response.js index eb8c9fd..e6700a8 100644 --- a/carrot/src/background/predict-response.js +++ b/carrot/src/background/predict-response.js @@ -1,4 +1,4 @@ -import Rank from './rank.js'; +import { Rank } from './rank.js'; class PredictResponseRow { constructor(delta, rank, performance, newRank, deltaReqForRankUp, nextRank) { diff --git a/carrot/src/background/rank.js b/carrot/src/background/rank.js index 3226d35..db35e89 100644 --- a/carrot/src/background/rank.js +++ b/carrot/src/background/rank.js @@ -1,7 +1,7 @@ /** * Encapsulates a Codeforces rank. */ -export default class Rank { +export class Rank { constructor(name, abbr, low, high, colorClass) { this.name = name; this.abbr = abbr; @@ -34,5 +34,6 @@ Rank.RATED = [ new Rank('International Master', 'IM', 2300, 2400, 'user-orange'), new Rank('Grandmaster', 'GM', 2400, 2600, 'user-red'), new Rank('International Grandmaster', 'IGM', 2600, 3000, 'user-red'), - new Rank('Legendary Grandmaster', 'LGM', 3000, Infinity, 'user-legendary'), + new Rank('Legendary Grandmaster', 'LGM', 3000, 4000, 'user-legendary'), + new Rank('Tourist', 'T', 4000, Infinity, 'user-4000'), ];