feat : big update
This commit is contained in:
+13
-8
@@ -38,16 +38,21 @@ export const mainStatOptions = {
|
||||
|
||||
export const substatOptions = ["CRIT Rate%/CRIT DMG%", "HP%", "ATK%", "DEF%", "EM", "ER"] as const;
|
||||
|
||||
const artifactGroupSchema = (name: "Late Game" | "Early Game") => z.strictObject({
|
||||
name: z.literal(name),
|
||||
rows: z.array(z.strictObject({
|
||||
firstArtifactKey: catalogKey,
|
||||
secondArtifactKey: catalogKey.nullable(),
|
||||
percent,
|
||||
})).max(50),
|
||||
});
|
||||
|
||||
export const artifactSectionSchema = z.strictObject({
|
||||
expectedVersion: z.number().int().positive(),
|
||||
groups: z.array(z.strictObject({
|
||||
name: z.string().trim().min(1).max(120),
|
||||
rows: z.array(z.strictObject({
|
||||
firstArtifactKey: catalogKey,
|
||||
secondArtifactKey: catalogKey.nullable(),
|
||||
percent,
|
||||
})).max(50),
|
||||
})).max(12),
|
||||
groups: z.tuple([
|
||||
artifactGroupSchema("Late Game"),
|
||||
artifactGroupSchema("Early Game"),
|
||||
]),
|
||||
sands: z.array(z.enum(mainStatOptions.sands)).max(2),
|
||||
goblet: z.array(z.enum(mainStatOptions.goblet)).max(2),
|
||||
circlet: z.array(z.enum(mainStatOptions.circlet)).max(2),
|
||||
|
||||
Reference in New Issue
Block a user