Finished first column of duels stats
This commit is contained in:
@@ -2,6 +2,11 @@ import { DIVISIONS, MODES } from "@/data/hypixel/duels"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
|
||||
type DuelType = "all_modes"
|
||||
export type Div = {
|
||||
name: typeof DIVISIONS[number]["name"]
|
||||
level: number
|
||||
color: typeof DIVISIONS[number]["color"]
|
||||
}
|
||||
|
||||
export function getDivision(duelType: DuelType, stats: NonNullable<NonNullStats["Duels"]>) {
|
||||
for (const div of DIVISIONS.slice().reverse()) {
|
||||
|
||||
Reference in New Issue
Block a user