Added more pit stats

This commit is contained in:
2025-09-05 19:44:48 +02:00
parent 5bf00d513a
commit 2a0403160a
3 changed files with 40 additions and 2 deletions

View File

@@ -449,7 +449,8 @@ export const uhcSchema = z.looseObject({
export const pitStats = z.looseObject({
pit_stats_ptl: z.looseObject({
kills: z.number().default(0),
deaths: z.number().default(0)
deaths: z.number().default(0),
cash_earned: z.number().default(0)
}),
profile: z.looseObject({
prestiges: z.array(z.looseObject({
@@ -457,7 +458,9 @@ export const pitStats = z.looseObject({
xp_on_prestige: z.number(),
timestamp: z.number()
})),
xp: z.number().default(0)
xp: z.number().default(0),
cash: z.number().default(0),
renown: z.number().default(0)
})
}).transform(({ profile, pit_stats_ptl, ...rest }) => ({
profile,