Added blitz stat card
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user