diff --git a/apps/discord-bot/src/commands/copsandcrims/copsandcrims.profile.tsx b/apps/discord-bot/src/commands/copsandcrims/copsandcrims.profile.tsx index c49932ceb..aa0aee60f 100644 --- a/apps/discord-bot/src/commands/copsandcrims/copsandcrims.profile.tsx +++ b/apps/discord-bot/src/commands/copsandcrims/copsandcrims.profile.tsx @@ -34,6 +34,8 @@ export const CopsAndCrimsProfile = ({ [t("stats.knifeKills"), t(copsandcrims.overall.knifeKills), "§7"], [t("stats.headshotKills"), t(copsandcrims.overall.headshotKills), "§4"], [t("stats.grenadeKills"), t(copsandcrims.overall.grenadeKills), "§2"], + [t("stats.shotsFired"), t(copsandcrims.overall.shotsFired), "§6"], + [t("stats.shotsPerKill"), t(copsandcrims.overall.shotsPerKill), "§b"], ]; let table: JSX.Element; diff --git a/locales/en-US/default.json b/locales/en-US/default.json index b66f3e884..d4fe0d9f2 100644 --- a/locales/en-US/default.json +++ b/locales/en-US/default.json @@ -817,7 +817,8 @@ "airTime": "Air Time", "potionsSplashed": "Potions Splashed", "powerOrbs": "Power Orbs", - "grenadeKills": "Grenade Kills" + "grenadeKills": "Grenade Kills", + "shotsPerKill": "Shots/Kill" }, "tips": { "discord": "$t(emojis:socials.discord) Join our **$t(socials.discord)** and get **20% lower cooldowns** $t(emojis:heart)", diff --git a/packages/schemas/src/player/gamemodes/copsandcrims/mode.ts b/packages/schemas/src/player/gamemodes/copsandcrims/mode.ts index fc577349d..0995e3311 100644 --- a/packages/schemas/src/player/gamemodes/copsandcrims/mode.ts +++ b/packages/schemas/src/player/gamemodes/copsandcrims/mode.ts @@ -126,6 +126,12 @@ export class CopsAndCrimsOverall { @Field() public grenadeKills: number; + @Field() + public shotsFired: number; + + @Field({ leaderboard: { enabled: false } }) + public shotsPerKill: number; + public constructor(data: APIData, defusal: Defusal, deathmatch: Deathmatch, gunGame: GunGame) { this.wins = add(defusal.wins, deathmatch.wins, gunGame.wins); this.kills = add(defusal.kills, deathmatch.kills, gunGame.kills); @@ -135,5 +141,7 @@ export class CopsAndCrimsOverall { this.knifeKills = data.knife_kills; this.headshotKills = data.headshot_kills; this.grenadeKills = data.grenade_kills; + this.shotsFired = data.shots_fired; + this.shotsPerKill = ratio(this.shotsFired, this.kills); } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e289028fb..06d805655 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -701,6 +701,8 @@ importers: packages/skin-renderer: {} + packages/skin-renderer/pkg: {} + packages/util: dependencies: '@swc/helpers':