diff --git a/src/app/(stats)/player/[ign]/_stats/woolgames/stats.tsx b/src/app/(stats)/player/[ign]/_stats/woolgames/stats.tsx new file mode 100644 index 0000000..829656c --- /dev/null +++ b/src/app/(stats)/player/[ign]/_stats/woolgames/stats.tsx @@ -0,0 +1,33 @@ +import { formatNumber, formatSecondsToTime } from "@/lib/formatters" +import { getWoolGamesPrestige } from "@/lib/hypixel/woolgames/general" +import { NonNullStats } from "@/lib/schema/player" +import { BasicStat, Stat } from "../../_components/Stats" + +export default function WoolGamesGeneralStats( + { stats, level, kills, wins }: { stats: NonNullable, level: number, kills: number, wins: number } +) { + const pres = getWoolGamesPrestige(level) + return ( +
+
+ + + +
+
+ + + <> + {stats.progression?.available_layers || 0} + / + {100} + + +
+
+ + +
+
+ ) +} diff --git a/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx b/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx index 4cb9273..c892398 100644 --- a/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx +++ b/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx @@ -5,6 +5,7 @@ import { NonNullStats } from "@/lib/schema/player" import Multicolored from "../../_components/Multicolored" import GeneralStats from "../GeneralStats" import WoolGamesProgress from "./progress" +import WoolGamesGeneralStats from "./stats" export default function WoolGamesStats({ stats }: { stats: NonNullStats["WoolGames"] }) { if (!stats) return null @@ -36,6 +37,9 @@ export default function WoolGamesStats({ stats }: { stats: NonNullStats["WoolGam > + + + ) } diff --git a/src/lib/schema/stats.ts b/src/lib/schema/stats.ts index 8925e82..8e94135 100644 --- a/src/lib/schema/stats.ts +++ b/src/lib/schema/stats.ts @@ -726,8 +726,11 @@ export const copsAndCrimsStatsSchema = z.looseObject({ export const woolGamesStatsSchema = z.looseObject({ wool_wars_prestige_icon: z.string().optional(), + playtime: z.number().default(0), + coins: z.number().default(0), progression: z.looseObject({ - experience: z.number().default(0) + experience: z.number().default(0), + available_layers: z.number().default(0) }).optional(), capture_the_wool: z.looseObject({ stats: z.looseObject({