Completed mini bw stats
This commit is contained in:
17
src/lib/hypixel/bedwars.ts
Normal file
17
src/lib/hypixel/bedwars.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { PRESTIGE_ICONS } from "@/data/hypixel/bedwars"
|
||||
|
||||
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
|
||||
}
|
||||
@@ -13,7 +13,16 @@ export const playerSchema = z.looseObject({
|
||||
achievementPoints: z.number().optional(),
|
||||
stats: z.looseObject({
|
||||
Bedwars: z.looseObject({
|
||||
Experience: z.number()
|
||||
Experience: z.number(),
|
||||
winstreak: z.number().optional(),
|
||||
kills_bedwars: z.number().default(0),
|
||||
deaths_bedwars: z.number().default(0),
|
||||
final_kills_bedwars: z.number().default(0),
|
||||
final_deaths_bedwars: z.number().default(0),
|
||||
wins_bedwars: z.number().default(0),
|
||||
losses_bedwars: z.number().default(0),
|
||||
beds_broken_bedwars: z.number().default(0),
|
||||
beds_lost_bedwars: z.number().default(0)
|
||||
}).optional()
|
||||
}),
|
||||
quests: z.record(
|
||||
|
||||
Reference in New Issue
Block a user