Finished smash heros card header
This commit is contained in:
@@ -9,6 +9,7 @@ import { megawallsStats } from "./stats/megawalls"
|
||||
import { murderMysteryStatsSchema } from "./stats/murder-mystery"
|
||||
import { pitStats } from "./stats/pit"
|
||||
import { skywarsStatsSchema } from "./stats/skywars"
|
||||
import { smashHerosStats } from "./stats/smashheros"
|
||||
import { speedUhcStatsSchema } from "./stats/speeduhc"
|
||||
import { tntGamesStatsSchema } from "./stats/tnt-games"
|
||||
import { uhcSchema } from "./stats/uhc"
|
||||
@@ -40,12 +41,14 @@ export const playerSchema = z.looseObject({
|
||||
WoolGames: woolGamesStatsSchema.optional(),
|
||||
HungerGames: blitzStatsSchema.optional(),
|
||||
Arcade: arcadeStatsSchema.optional(),
|
||||
SpeedUHC: speedUhcStatsSchema.optional()
|
||||
}).transform(({ Walls3, MCGO, HungerGames, ...rest }) => {
|
||||
SpeedUHC: speedUhcStatsSchema.optional(),
|
||||
SuperSmash: smashHerosStats.optional()
|
||||
}).transform(({ Walls3, MCGO, HungerGames, SuperSmash, ...rest }) => {
|
||||
return {
|
||||
MegaWalls: Walls3,
|
||||
CopsAndCrims: MCGO,
|
||||
Blitz: HungerGames,
|
||||
SmashHeros: SuperSmash,
|
||||
...rest
|
||||
}
|
||||
}).optional(),
|
||||
|
||||
Reference in New Issue
Block a user