Added stats for general modes
This commit is contained in:
50
đ
50
đ
@@ -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>)
|
||||
Reference in New Issue
Block a user