Added warlords stats card

This commit is contained in:
2025-09-18 20:08:49 +02:00
parent 045cbe54ca
commit 0e08c1ab1d
7 changed files with 254 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ import { smashHerosStats } from "./stats/smashheros"
import { speedUhcStatsSchema } from "./stats/speeduhc"
import { tntGamesStatsSchema } from "./stats/tnt-games"
import { uhcSchema } from "./stats/uhc"
import { warlordsStatsSchema } from "./stats/warlords"
import { woolGamesStatsSchema } from "./stats/woolgames"
export const playerSchema = z.looseObject({
@@ -42,13 +43,15 @@ export const playerSchema = z.looseObject({
HungerGames: blitzStatsSchema.optional(),
Arcade: arcadeStatsSchema.optional(),
SpeedUHC: speedUhcStatsSchema.optional(),
SuperSmash: smashHerosStats.optional()
}).transform(({ Walls3, MCGO, HungerGames, SuperSmash, ...rest }) => {
SuperSmash: smashHerosStats.optional(),
Battleground: warlordsStatsSchema.optional()
}).transform(({ Walls3, MCGO, HungerGames, SuperSmash, Battleground, ...rest }) => {
return {
MegaWalls: Walls3,
CopsAndCrims: MCGO,
Blitz: HungerGames,
SmashHeros: SuperSmash,
Warlords: Battleground,
...rest
}
}).optional(),