From 09bb498c7a58c5bfb9e9034f4e87b4bb8e398bb9 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Sat, 26 Jul 2025 20:43:38 -0600 Subject: [PATCH] [WIP] --- src/system/schemas/v1.10/custom-pokemon-data.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/system/schemas/v1.10/custom-pokemon-data.ts b/src/system/schemas/v1.10/custom-pokemon-data.ts index cda2dcd2c3d..3fb65753c94 100644 --- a/src/system/schemas/v1.10/custom-pokemon-data.ts +++ b/src/system/schemas/v1.10/custom-pokemon-data.ts @@ -1,4 +1,5 @@ -import { Z$OptionalNonNegativeIntCatchToUndef } from "#schemas/common"; +import { Z$OptionalNonNegativeIntCatchToUndef, Z$PositiveInt } from "#schemas/common"; +import { Z$PokemonType } from "#system/schemas/v1.10/pokemon-type"; import { z } from "zod"; /** @@ -11,7 +12,9 @@ import { z } from "zod"; export const Z$CustomPokemonData = z.object({ // sprite scale of -1 is allowed, but it's the default meaning there is no override for it spriteScale: z.number().nonnegative().optional().catch(undefined), - ability: Z$OptionalNonNegativeIntCatchToUndef.catch(undefined), - passive: Z$OptionalNonNegativeIntCatchToUndef.catch(undefined), - nature: Z$OptionalNonNegativeIntCatchToUndef.catch(undefined), -}); \ No newline at end of file + ability: Z$OptionalNonNegativeIntCatchToUndef, + passive: Z$OptionalNonNegativeIntCatchToUndef, + nature: Z$OptionalNonNegativeIntCatchToUndef, + types: z.array(Z$PokemonType).optional().catch(undefined), + hitsRecCount: Z$PositiveInt.optional().catch(undefined), +});