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