diff --git a/src/app/(stats)/player/[ign]/_stats/smashheros/smashheros.tsx b/src/app/(stats)/player/[ign]/_stats/smashheros/smashheros.tsx index f104fc7..dd50eb1 100644 --- a/src/app/(stats)/player/[ign]/_stats/smashheros/smashheros.tsx +++ b/src/app/(stats)/player/[ign]/_stats/smashheros/smashheros.tsx @@ -4,6 +4,7 @@ import { devide } from "@/lib/hypixel/general" import { getSmashHerosDifficultyColor, getSmashHerosMostPlayedHero } from "@/lib/hypixel/smashhero/general" import { NonNullStats } from "@/lib/schema/player" import GeneralStats from "../GeneralStats" +import SmashHerosGeneralStats from "./stats" export default function SmashHerosStats({ stats }: { stats: NonNullStats["SmashHeros"] }) { if (!stats) return null @@ -46,6 +47,8 @@ export default function SmashHerosStats({ stats }: { stats: NonNullStats["SmashH ]} > + + ) } diff --git a/src/app/(stats)/player/[ign]/_stats/smashheros/stats.tsx b/src/app/(stats)/player/[ign]/_stats/smashheros/stats.tsx new file mode 100644 index 0000000..3068b3d --- /dev/null +++ b/src/app/(stats)/player/[ign]/_stats/smashheros/stats.tsx @@ -0,0 +1,28 @@ +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 SmashHerosGeneralStats({ stats }: { stats: NonNullable }) { + const kd = formatNumber(devide(stats.kills, stats.deaths)) + const wl = formatNumber(devide(stats.wins, stats.losses)) + return ( +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ ) +} diff --git a/src/lib/schema/stats/smashheros.ts b/src/lib/schema/stats/smashheros.ts index e14b588..1437438 100644 --- a/src/lib/schema/stats/smashheros.ts +++ b/src/lib/schema/stats/smashheros.ts @@ -10,6 +10,8 @@ export const smashHerosStats = z.object({ wins: z.number().default(0), losses: z.number().default(0), smashLevel: z.number().default(0), + coins: z.number().default(0), + damage_dealt: z.number().default(0), class_stats: z.object({ BOTMUN: classStats, THE_BULK: classStats,