diff --git a/src/app/(stats)/player/[ign]/_stats/arcade/arcade.tsx b/src/app/(stats)/player/[ign]/_stats/arcade/arcade.tsx index e896d16..1fb74e5 100644 --- a/src/app/(stats)/player/[ign]/_stats/arcade/arcade.tsx +++ b/src/app/(stats)/player/[ign]/_stats/arcade/arcade.tsx @@ -4,7 +4,7 @@ import { getArcadeTotalWins } from "@/lib/hypixel/arcade/general" import { NonNullStats } from "@/lib/schema/player" import { BasicStat } from "../../_components/Stats" import GeneralStats from "../GeneralStats" -import { ArcadeMiniWallsStats, ArcadePixelPartyStats } from "./stats" +import { ArcadeMiniWallsStats, ArcadePixelPartyStats, ArcadeZombieStats } from "./stats" export default function ArcadeStats({ stats }: { stats: NonNullStats["Arcade"] }) { if (!stats) return null @@ -29,6 +29,8 @@ export default function ArcadeStats({ stats }: { stats: NonNullStats["Arcade"] } + + ) } diff --git a/src/app/(stats)/player/[ign]/_stats/arcade/stats.tsx b/src/app/(stats)/player/[ign]/_stats/arcade/stats.tsx index 0b736cc..0ed0108 100644 --- a/src/app/(stats)/player/[ign]/_stats/arcade/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/arcade/stats.tsx @@ -5,6 +5,43 @@ import { capitalizeFirstLetter } from "@/lib/utils" import { BasicStat } from "../../_components/Stats" import { PixelPartyStatsTable } from "./table" +export function ArcadeZombieStats({ stats }: { stats: NonNullable }) { + const bha = devide(stats.bullets_hit_zombies, stats.bullets_shot_zombies) * 100 + const zha = devide(stats.headshots_zombies, stats.bullets_hit_zombies) * 100 + return ( + <> +

Zombies

+
+
+ +

+
+

+ + + +
+
+ + + + + +
+
+ + +

+
+

+ + +
+
+ + ) +} + export function ArcadePixelPartyStats({ stats }: { stats: NonNullable }) { const losses = (stats.pixel_party?.games_played || 0) - (stats.pixel_party?.wins || 0) const wl = formatNumber(devide(stats.pixel_party?.wins || 0, losses)) diff --git a/src/lib/schema/stats.ts b/src/lib/schema/stats.ts index 4995ab3..9d79782 100644 --- a/src/lib/schema/stats.ts +++ b/src/lib/schema/stats.ts @@ -920,6 +920,16 @@ export const arcadeStatsSchema = z.object({ deaths_mini_walls: z.number().default(0), arrows_hit_mini_walls: z.number().default(0), arrows_shot_mini_walls: z.number().default(0), + total_rounds_survived_zombies: z.number().default(0), + best_round_zombies: z.number().default(0), + zombie_kills_zombies: z.number().default(0), + bullets_hit_zombies: z.number().default(0), + bullets_shot_zombies: z.number().default(0), + headshots_zombies: z.number().default(0), + players_revived_zombies: z.number().default(0), + times_knocked_down_zombies: z.number().default(0), + doors_opened_zombies: z.number().default(0), + windows_repaired_zombies: z.number().default(0), coins: z.number().default(0), pixel_party: z.object({ wins: z.number().default(0),