feat : big update
CI / Verify (push) Successful in 51s
CI / Build immutable images and deploy (push) Successful in 1m36s

This commit is contained in:
2026-08-30 10:52:37 +00:00 Unverified
parent 0a643dd60e
commit 273baa55d8
22 changed files with 4025 additions and 87 deletions
+13 -8
View File
@@ -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),