Added mw modes table
This commit is contained in:
@@ -554,7 +554,7 @@ export const tntGamesStatsSchema = z.looseObject({
|
||||
...tntGamesModeStats()
|
||||
})
|
||||
|
||||
function megawallsModeStats() {
|
||||
function megawallsClassStats() {
|
||||
const ids = [
|
||||
"angel",
|
||||
"arcanist",
|
||||
@@ -601,6 +601,31 @@ function megawallsModeStats() {
|
||||
return Object.fromEntries(entries) as Record<`${typeof ids[number]}_${typeof stats[number]}`, z.ZodDefault<z.ZodNumber>>
|
||||
}
|
||||
|
||||
function megawallsModeStats() {
|
||||
const ids = [
|
||||
"standard",
|
||||
"face_off",
|
||||
"gvg"
|
||||
] as const
|
||||
|
||||
const stats = [
|
||||
"kills",
|
||||
"deaths",
|
||||
"wins",
|
||||
"losses"
|
||||
] as const
|
||||
|
||||
const entries = new Map<string, z.ZodDefault<z.ZodNumber>>()
|
||||
|
||||
for (const id of ids) {
|
||||
for (const stat of stats) {
|
||||
entries.set(`${stat}_${id}`, z.number().default(0))
|
||||
}
|
||||
}
|
||||
|
||||
return Object.fromEntries(entries) as Record<`${typeof stats[number]}_${typeof ids[number]}`, z.ZodDefault<z.ZodNumber>>
|
||||
}
|
||||
|
||||
export const megawallsStats = z.looseObject({
|
||||
kills: z.number().default(0),
|
||||
assists: z.number().default(0),
|
||||
@@ -615,5 +640,6 @@ export const megawallsStats = z.looseObject({
|
||||
coins: z.number().default(0),
|
||||
wither_damage: z.number().default(0),
|
||||
witherDamage: z.number().default(0),
|
||||
...megawallsClassStats(),
|
||||
...megawallsModeStats()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user