Added first duel stats
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import z from "zod"
|
||||
import { bedwarsStatsSchema, duelsStatsSchema, murderMysteryStatsSchema, skywarsStatsSchema } from "./stats"
|
||||
import { bedwarsStatsSchema, buildBattleStatsSchema, duelsStatsSchema, murderMysteryStatsSchema, skywarsStatsSchema } from "./stats"
|
||||
|
||||
export const playerSchema = z.looseObject({
|
||||
player: z.looseObject({
|
||||
@@ -17,7 +17,8 @@ export const playerSchema = z.looseObject({
|
||||
Bedwars: bedwarsStatsSchema.optional(),
|
||||
SkyWars: skywarsStatsSchema.optional(),
|
||||
Duels: duelsStatsSchema.optional(),
|
||||
MurderMystery: murderMysteryStatsSchema.optional()
|
||||
MurderMystery: murderMysteryStatsSchema.optional(),
|
||||
BuildBattle: buildBattleStatsSchema.optional()
|
||||
}).optional(),
|
||||
quests: z.record(
|
||||
z.string(),
|
||||
|
||||
@@ -385,3 +385,9 @@ export const murderMysteryStatsSchema = z.looseObject({
|
||||
coins_pickedup_MURDER_INFECTION: z.number().default(0),
|
||||
...murderMysteryModeStats()
|
||||
})
|
||||
|
||||
export const buildBattleStatsSchema = z.looseObject({
|
||||
wins: z.number().default(0),
|
||||
score: z.number().default(0),
|
||||
coins: z.number().default(0)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user