fix: some rating functionality

This commit is contained in:
tresabhi committed 2024-11-20 10:50:09 -06:00
1 parent fcb848df5b
commit 5bf6a14cff
9 files changed
+104 -111

No files matched your search

+5 -5
View File
@@ -1,11 +1,11 @@
import { RatingPlayer } from '../statistics';
export const LEAGUES = [
{ name: 'diamond', minScore: 5000, index: 0 },
{ name: 'platinum', minScore: 4000, index: 1 },
{ name: 'gold', minScore: 3000, index: 2 },
{ name: 'silver', minScore: 2000, index: 3 },
{ name: 'bronze', minScore: -Infinity, index: 4 },
{ name: 'diamond', minScore: 5000, index: 0, icon: 'YOw6mZ4' },
{ name: 'platinum', minScore: 4000, index: 1, icon: 'AOzDENm' },
{ name: 'gold', minScore: 3000, index: 2, icon: 'InVGtQy' },
{ name: 'silver', minScore: 2000, index: 3, icon: 'HD4ADcL' },
{ name: 'bronze', minScore: -Infinity, index: 4, icon: 'Ka4nNyv' },
];
export interface RatingNeighbors {
neighbors: RatingPlayer[];