Finished smash heros card header

This commit is contained in:
2025-09-18 10:19:07 +02:00
parent 28a63b43b0
commit c6a4fe2a55
7 changed files with 142 additions and 4 deletions

View File

@@ -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(),