Finished quake craft stats

This commit is contained in:
2025-09-22 14:11:12 +02:00
parent acf5f3b36d
commit f2a7987bc9
6 changed files with 173 additions and 5 deletions

View File

@@ -87,3 +87,32 @@ export function VampireZGeneralStats({ stats }: { stats: NonNullable<NonNullStat
</>
)
}
export function QuakeCraftGeneralStats({ stats, godlikes }: { stats: NonNullable<NonNullStats["Quakecraft"]>, godlikes: number }) {
return (
<div className="flex mt-4">
<div className="flex-1">
<BasicStat title="Coins: " value={formatNumber(stats.coins)} className="text-mc-gold" />
<p>
<br />
</p>
<BasicStat title="Kills: " value={formatNumber(stats.kills + stats.kills_teams)} />
<BasicStat title="Deaths: " value={formatNumber(stats.deaths + stats.deaths_teams)} />
<BasicStat
title="Kill/Death Ratio: "
value={formatNumber(devide(stats.kills + stats.kills_teams, stats.deaths + stats.deaths_teams))}
/>
</div>
<div className="flex-1">
<BasicStat title="Wins: " value={formatNumber(stats.wins + stats.wins_teams)} />
<p>
<br />
</p>
<BasicStat title="Godlikes: " value={formatNumber(godlikes)} />
<BasicStat title="Highest Killstreak: " value={formatNumber(stats.highest_killstreak)} />
<BasicStat title="Dash Cooldown: " value={stats.dash_cooldown + 1} />
<BasicStat title="Dash Power: " value={stats.dash_power + 1} />
</div>
</div>
)
}