Updated stats

This commit is contained in:
2025-09-21 22:10:13 +02:00
parent 08e34de7ca
commit d1708a204c
21 changed files with 43 additions and 40 deletions

View File

@@ -3,13 +3,13 @@ import { formatNumber } from "@/lib/formatters"
import { getCopsAndCrimsScoreColor } from "@/lib/hypixel/copsandcrims/general"
import { devide } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player"
import { GeneralStats } from "../stats-components"
import { EmptyStats, GeneralStats } from "../stats-components"
import CopsAndCrimsGeneralStats from "./stats"
import CopsAndCrimsStatTable from "./table"
import CopsAndCrimsWeaponStats from "./weapons"
export default function CopsAndCrimsStats({ stats }: { stats: NonNullStats["CopsAndCrims"] }) {
if (!stats) return null
if (!stats) return <EmptyStats title="Cops And Crims" />
const kills = stats.kills + stats.kills_deathmatch + stats.kills_gungame
const assists = stats.assists + stats.assists_deathmatch + stats.assists_gungame