Updated bw stats
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user