Cleanup
This commit is contained in:
@@ -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>>,
|
||||
|
||||
Reference in New Issue
Block a user