From 9c20aff89d166078fea9c6567c56b80399effd3a Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 22 Oct 2024 17:35:14 +0100 Subject: [PATCH] add bombs to miss count --- projects/backend/src/service/score.service.ts | 4 ++-- projects/website/src/components/score/badges/score-misses.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/backend/src/service/score.service.ts b/projects/backend/src/service/score.service.ts index 2b25f23..d577063 100644 --- a/projects/backend/src/service/score.service.ts +++ b/projects/backend/src/service/score.service.ts @@ -191,7 +191,7 @@ export class ScoreService { songDifficulty: difficultyKey, songScore: score.baseScore, misses: { - misses: score.missedNotes + score.badCuts, + misses: score.missedNotes + score.badCuts + score.bombCuts, missedNotes: score.missedNotes, bombCuts: score.bombCuts, badCuts: score.badCuts, @@ -209,7 +209,7 @@ export class ScoreService { data.scoreImprovement = { score: rawScoreImprovement.score, misses: { - misses: rawScoreImprovement.missedNotes + rawScoreImprovement.badCuts, + misses: rawScoreImprovement.missedNotes + rawScoreImprovement.badCuts + rawScoreImprovement.bombCuts, missedNotes: rawScoreImprovement.missedNotes, bombCuts: rawScoreImprovement.bombCuts, badCuts: rawScoreImprovement.badCuts, diff --git a/projects/website/src/components/score/badges/score-misses.tsx b/projects/website/src/components/score/badges/score-misses.tsx index adbad3a..69da21b 100644 --- a/projects/website/src/components/score/badges/score-misses.tsx +++ b/projects/website/src/components/score/badges/score-misses.tsx @@ -51,7 +51,7 @@ export default function ScoreMissesBadge({ score, hideXMark }: ScoreMissesBadgeP fullCombo={scoreImprovement.fullCombo} >
- {previousScoreMisses.missedNotes == 0 ? ( + {scoreImprovement.fullCombo ? (

FC

) : ( formatNumberWithCommas(previousScoreMisses.misses)