Updated wool games stats
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
import { CLASSES, DIFFICULTIES, EASY_XP, ICONS, NORMAL_XP, PRESTIGES } from "@/data/hypixel/woolgames"
|
||||
import { getColorFromCode } from "@/lib/colors"
|
||||
import { NonNullStats } from "@/lib/schema/player"
|
||||
import { floorLevel } from "../general"
|
||||
|
||||
export function getWoolGamesWoolWarsClassStats(
|
||||
classId: typeof CLASSES[number]["id"],
|
||||
{ stats }: NonNullable<NonNullable<NonNullStats["WoolGames"]>["wool_wars"]>
|
||||
) {
|
||||
const id = classId.toLowerCase()
|
||||
return []
|
||||
}
|
||||
|
||||
export function getWoolGamesWoolWarsClass(val?: string) {
|
||||
const klass = CLASSES.find(c => c.id === val)
|
||||
const klass = CLASSES.find(c => c.id === val?.toLowerCase())
|
||||
return klass || null
|
||||
}
|
||||
|
||||
|
||||
@@ -724,6 +724,15 @@ export const copsAndCrimsStatsSchema = z.looseObject({
|
||||
...copsAndCrimsGunUpgrades()
|
||||
})
|
||||
|
||||
const woolGamesClassStats = z.looseObject({
|
||||
kills: z.number().default(0),
|
||||
assists: z.number().default(0),
|
||||
deaths: z.number().default(0),
|
||||
wool_placed: z.number().default(0),
|
||||
blocks_broken: z.number().default(0),
|
||||
powerups_gotten: z.number().default(0)
|
||||
})
|
||||
|
||||
export const woolGamesStatsSchema = z.looseObject({
|
||||
wool_wars_prestige_icon: z.string().optional(),
|
||||
playtime: z.number().default(0),
|
||||
@@ -768,7 +777,15 @@ export const woolGamesStatsSchema = z.looseObject({
|
||||
losses: z.number().default(0),
|
||||
wool_placed: z.number().default(0),
|
||||
blocks_broken: z.number().default(0),
|
||||
powerups_gotten: z.number().default(0)
|
||||
powerups_gotten: z.number().default(0),
|
||||
classes: z.looseObject({
|
||||
tank: woolGamesClassStats.optional(),
|
||||
archer: woolGamesClassStats.optional(),
|
||||
swordsman: woolGamesClassStats.optional(),
|
||||
engineer: woolGamesClassStats.optional(),
|
||||
golem: woolGamesClassStats.optional(),
|
||||
assault: woolGamesClassStats.optional()
|
||||
}).optional()
|
||||
}).optional()
|
||||
}).optional()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user