Skip to content

Commit

Permalink
Fix double speed multiplier notation in pp list
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed Nov 9, 2024
1 parent e74f2ce commit d5485df
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions src/utils/helpers/PPHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,38 +60,8 @@ export abstract class PPHelper {
const score = topScores[i];

if (score) {
let modstring = score.completeModString;

if (
score.forceAR ||
(score.speedMultiplier && score.speedMultiplier !== 1)
) {
if (score.mods) {
modstring += " ";
}

modstring += "(";

if (score.forceAR) {
modstring += `AR${score.forceAR}`;
}

if (
score.speedMultiplier &&
score.speedMultiplier !== 1
) {
if (score.forceAR) {
modstring += ", ";
}

modstring += `${score.speedMultiplier}x`;
}

modstring += ")";
}

embed.addFields({
name: `${i + 1}. ${score.title} ${modstring}`,
name: `${i + 1}. ${score.title} ${score.completeModString}`,
value: `${score.combo}x | ${(score.accuracy.value() * 100).toFixed(2)}% | ${
score.miss
} ${Symbols.missIcon} | ${underscore(
Expand Down

0 comments on commit d5485df

Please sign in to comment.