This commit is contained in:
2025-09-08 14:21:02 +02:00
parent 0dd9313666
commit 1afec3f73e

View File

@@ -594,11 +594,6 @@ function megawallsClassStats() {
"losses"
] as const
const classesOther = [
"prestige",
"enderchest_rows"
] as const
const entries = new Map<string, z.ZodDefault<z.ZodNumber>>()
const classes = new Map<
string,
@@ -609,10 +604,8 @@ function megawallsClassStats() {
for (const stat of stats) {
entries.set(`${id}_${stat}`, z.number().default(0))
}
for (const klass of classesOther) {
classes.set(id, z.looseObject({ prestige: z.number().default(0), enderchest_rows: z.number().default(0) }).optional())
}
}
return {
classStats: Object.fromEntries(entries) as Record<`${typeof ids[number]}_${typeof stats[number]}`, z.ZodDefault<z.ZodNumber>>,