Added stats for general modes

This commit is contained in:
2025-08-21 02:20:01 +02:00
parent a4bf768c83
commit b31ef97789
10 changed files with 306 additions and 109 deletions

50
đ
View File

@@ -1,50 +0,0 @@
import { PRESTIGE_ICONS, PRESTIGES, SLUMBER_WALLETS } from "@/data/hypixel/bedwars"
import { floorLevel } from "./formatters"
export function getBedwarsStar(level: number) {
if (level < 1100) {
return PRESTIGE_ICONS[0].symbol
}
if (level > 1100 && level < 2100) {
return PRESTIGE_ICONS[1].symbol
}
if (level > 2100 && level < 3100) {
return PRESTIGE_ICONS[2].symbol
}
return PRESTIGE_ICONS[3].symbol
}
export function getTextColor(level: number) {
const floored = floorLevel(level, 100)
if (level > 5000) {
return PRESTIGES[PRESTIGES.length - 1].color
}
return PRESTIGES.find(l => l.level === floored)!.color
}
export function getPrestigeName(level: number) {
const floored = floorLevel(level, 100)
if (level > 5000) {
return PRESTIGES[PRESTIGES.length - 1].name
}
return PRESTIGES.find(p => p.level === floored)!.name
}
export function getWalletMax(name?: string) {
if (!name) return 25
const wallets = SLUMBER_WALLETS as Record<string, number>
if (!wallets[name]) return 25
return wallets[name]
}
export function getLatesRoom(rooms: Record<string, boolean>)