Added first mm stats
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import z from "zod"
|
||||
import { bedwarsStatsSchema, duelsStatsSchema, skywarsStatsSchema } from "./stats"
|
||||
import { bedwarsStatsSchema, duelsStatsSchema, murderMysteryStatsSchema, skywarsStatsSchema } from "./stats"
|
||||
|
||||
export const playerSchema = z.looseObject({
|
||||
player: z.looseObject({
|
||||
@@ -16,7 +16,8 @@ export const playerSchema = z.looseObject({
|
||||
stats: z.looseObject({
|
||||
Bedwars: bedwarsStatsSchema.optional(),
|
||||
SkyWars: skywarsStatsSchema.optional(),
|
||||
Duels: duelsStatsSchema.optional()
|
||||
Duels: duelsStatsSchema.optional(),
|
||||
MurderMystery: murderMysteryStatsSchema.optional()
|
||||
}).optional(),
|
||||
quests: z.record(
|
||||
z.string(),
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { title } from "process"
|
||||
import z, { object } from "zod"
|
||||
import z from "zod"
|
||||
|
||||
function bedwarsModeStats() {
|
||||
const ids = [
|
||||
@@ -331,3 +330,11 @@ export const duelsStatsSchema = z.looseObject({
|
||||
...duelsModeStats().bestWs,
|
||||
...duelsModeStats().bridge
|
||||
})
|
||||
|
||||
export const murderMysteryStatsSchema = z.looseObject({
|
||||
kills: z.number().default(0),
|
||||
wins: z.number().default(0),
|
||||
coins: z.number().default(0),
|
||||
kills_as_murderer: z.number().default(0),
|
||||
deaths: z.number().default(0)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user