feat(guides): add team loadouts and element icons
This commit is contained in:
@@ -81,6 +81,10 @@ export const teamSectionSchema = z.strictObject({
|
||||
combo: z.string().trim().min(1).max(2_000),
|
||||
members: z.array(z.strictObject({
|
||||
characterKey: catalogKey,
|
||||
weaponKey: catalogKey.nullable(),
|
||||
artifactKey: catalogKey.nullable(),
|
||||
constellation: z.number().int().min(0).max(6),
|
||||
refinement: z.number().int().min(1).max(5),
|
||||
damage: z.coerce.number().finite().nonnegative().max(999_999_999_999),
|
||||
})).length(4).refine((members) => new Set(members.map((member) => member.characterKey)).size === 4, {
|
||||
message: "Team ต้องมีตัวละครไม่ซ้ำกัน 4 ตัว",
|
||||
|
||||
Reference in New Issue
Block a user