Added all modes

This commit is contained in:
2025-09-02 12:25:49 +02:00
parent c6147f1a5f
commit 16b200bc7d
4 changed files with 245 additions and 32 deletions

View File

@@ -74,8 +74,8 @@ export function getDuelsModeStats(mode: Mode, stats: NonNullable<NonNullStats["D
function duelsModeStats(index: typeof MODES[number]["id"], stats: NonNullable<NonNullStats["Duels"]>) {
if (index.startsWith("bridge_")) {
const kills = (stats[`${index}_kills`] === undefined ? 0 : stats[`${index}_kills`]) + (stats[`${index}_bridge_kills`] as number)
const deaths = (stats[`${index}_deaths`] === undefined ? 0 : stats[`${index}_deaths`]) + (stats[`${index}_bridge_deaths`] as number)
const kills = (stats[`${index}_kills`] as number) + (stats[`${index}_bridge_kills`] as number)
const deaths = (stats[`${index}_deaths`] as number) + (stats[`${index}_bridge_deaths`] as number)
return [
kills,