Added blitz stat card

This commit is contained in:
2025-09-13 13:04:34 +02:00
parent da0784be99
commit 60d940d9c1
6 changed files with 182 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
import z from "zod"
import {
bedwarsStatsSchema,
blitzStatsSchema,
buildBattleStatsSchema,
copsAndCrimsStatsSchema,
duelsStatsSchema,
@@ -36,11 +37,13 @@ export const playerSchema = z.looseObject({
TNTGames: tntGamesStatsSchema.optional(),
Walls3: megawallsStats.optional(),
MCGO: copsAndCrimsStatsSchema.optional(),
WoolGames: woolGamesStatsSchema.optional()
}).transform(({ Walls3, MCGO, ...rest }) => {
WoolGames: woolGamesStatsSchema.optional(),
HungerGames: blitzStatsSchema.optional()
}).transform(({ Walls3, MCGO, HungerGames, ...rest }) => {
return {
MegaWalls: Walls3,
CopsAndCrims: MCGO,
Blitz: HungerGames,
...rest
}
}).optional(),