diff --git a/src/app/(stats)/player/[ign]/_stats/megawalls/megawalls.tsx b/src/app/(stats)/player/[ign]/_stats/megawalls/megawalls.tsx index 41f58fd..0f35507 100644 --- a/src/app/(stats)/player/[ign]/_stats/megawalls/megawalls.tsx +++ b/src/app/(stats)/player/[ign]/_stats/megawalls/megawalls.tsx @@ -7,6 +7,7 @@ import { getDifficultyColor, getMostPlayed } from "@/lib/hypixel/megawalls/gener import { NonNullStats } from "@/lib/schema/player" import { cn } from "@/lib/utils" import CollapsedStats from "../../_components/CollapsedStats" +import MegaWallsGeneralStats from "./stats" export default function MegaWallsStats({ stats }: { stats: NonNullStats["MegaWalls"] }) { if (!stats) return null @@ -56,6 +57,8 @@ export default function MegaWallsStats({ stats }: { stats: NonNullStats["MegaWal + + diff --git a/src/app/(stats)/player/[ign]/_stats/megawalls/stats.tsx b/src/app/(stats)/player/[ign]/_stats/megawalls/stats.tsx new file mode 100644 index 0000000..094584f --- /dev/null +++ b/src/app/(stats)/player/[ign]/_stats/megawalls/stats.tsx @@ -0,0 +1,42 @@ +import { formatNumber } from "@/lib/formatters" +import { devide } from "@/lib/hypixel/general" +import { NonNullStats } from "@/lib/schema/player" +import { BasicStat } from "../../_components/Stats" + +export default function MegaWallsGeneralStats({ stats }: { stats: NonNullable }) { + const wl = formatNumber(devide(stats.wins, stats.losses)) + const kd = formatNumber(devide(stats.kills, stats.losses)) + const fkd = formatNumber(devide(stats.final_kills, stats.final_deaths)) + return ( +
+
+ + +

+
+

+

+
+

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

+
+

+ + + + +
+
+ ) +} diff --git a/src/lib/schema/stats.ts b/src/lib/schema/stats.ts index a0574ae..c0f7182 100644 --- a/src/lib/schema/stats.ts +++ b/src/lib/schema/stats.ts @@ -603,10 +603,17 @@ function megawallsModeStats() { export const megawallsStats = z.looseObject({ kills: z.number().default(0), + assists: z.number().default(0), deaths: z.number().default(0), wins: z.number().default(0), + wins_practice: z.number().default(0), losses: z.number().default(0), + losses_practice: z.number().default(0), final_kills: z.number().default(0), + final_assists: z.number().default(0), final_deaths: z.number().default(0), + coins: z.number().default(0), + wither_damage: z.number().default(0), + witherDamage: z.number().default(0), ...megawallsModeStats() })