make things optional like they're supposed to be
This commit is contained in:
parent
75cef78d8b
commit
1eca40d294
@ -22,7 +22,7 @@ export type PotencyStatus = z.infer<typeof PotencyStatus>;
|
||||
|
||||
const Effect = z.object({
|
||||
target: TargetEnum,
|
||||
accuracy: z.number().int(),
|
||||
accuracy: z.optional(z.number().int()),
|
||||
damage: z.optional(z.number().int()),
|
||||
heal: z.optional(z.number().int()),
|
||||
poison: z.optional(z.number().int()),
|
||||
@ -33,13 +33,13 @@ const Effect = z.object({
|
||||
resistanceChange: z.optional(z.number().int()),
|
||||
accuracyChange: z.optional(z.number().int()),
|
||||
speedChange: z.optional(z.number().int()),
|
||||
function: z.string()
|
||||
function: z.optional(z.string())
|
||||
});
|
||||
type Effect = z.infer<typeof Effect>;
|
||||
|
||||
const Skill = z.object({
|
||||
name: z.string(),
|
||||
accuracy: z.number().int(),
|
||||
accuracy: z.optional(z.number().int()),
|
||||
effects: z.array(Effect)
|
||||
});
|
||||
type Skill = z.infer<typeof Skill>;
|
||||
|
Loading…
Reference in New Issue
Block a user