Updated bw stats

This commit is contained in:
2025-08-20 12:54:49 +02:00
parent 5fc4b97646
commit a4bf768c83
7 changed files with 249 additions and 94 deletions

View File

@@ -1,4 +1,4 @@
import { PRESTIGE_ICONS, PRESTIGES } from "@/data/hypixel/bedwars"
import { PRESTIGE_ICONS, PRESTIGES, SLUMBER_ROOMS, SLUMBER_WALLETS } from "@/data/hypixel/bedwars"
import { floorLevel } from "./formatters"
export function getBedwarsStar(level: number) {
@@ -36,3 +36,27 @@ export function getPrestigeName(level: number) {
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 getLatestRoom(rooms?: Record<string, boolean>) {
if (!rooms) return null
let latestRoom = null
for (const room of SLUMBER_ROOMS) {
if (rooms[room.id]) {
latestRoom = room.name
}
}
return latestRoom
}