add bombs to miss count
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 41s
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m30s

This commit is contained in:
Lee 2024-10-22 17:35:14 +01:00
parent 36ab7eb4cf
commit 9c20aff89d
2 changed files with 3 additions and 3 deletions

@ -191,7 +191,7 @@ export class ScoreService {
songDifficulty: difficultyKey, songDifficulty: difficultyKey,
songScore: score.baseScore, songScore: score.baseScore,
misses: { misses: {
misses: score.missedNotes + score.badCuts, misses: score.missedNotes + score.badCuts + score.bombCuts,
missedNotes: score.missedNotes, missedNotes: score.missedNotes,
bombCuts: score.bombCuts, bombCuts: score.bombCuts,
badCuts: score.badCuts, badCuts: score.badCuts,
@ -209,7 +209,7 @@ export class ScoreService {
data.scoreImprovement = { data.scoreImprovement = {
score: rawScoreImprovement.score, score: rawScoreImprovement.score,
misses: { misses: {
misses: rawScoreImprovement.missedNotes + rawScoreImprovement.badCuts, misses: rawScoreImprovement.missedNotes + rawScoreImprovement.badCuts + rawScoreImprovement.bombCuts,
missedNotes: rawScoreImprovement.missedNotes, missedNotes: rawScoreImprovement.missedNotes,
bombCuts: rawScoreImprovement.bombCuts, bombCuts: rawScoreImprovement.bombCuts,
badCuts: rawScoreImprovement.badCuts, badCuts: rawScoreImprovement.badCuts,

@ -51,7 +51,7 @@ export default function ScoreMissesBadge({ score, hideXMark }: ScoreMissesBadgeP
fullCombo={scoreImprovement.fullCombo} fullCombo={scoreImprovement.fullCombo}
> >
<div className="flex gap-1 items-center"> <div className="flex gap-1 items-center">
{previousScoreMisses.missedNotes == 0 ? ( {scoreImprovement.fullCombo ? (
<p className="text-green-400">FC</p> <p className="text-green-400">FC</p>
) : ( ) : (
formatNumberWithCommas(previousScoreMisses.misses) formatNumberWithCommas(previousScoreMisses.misses)