From 2939ddb96140afbba8685d6d2a0c069a62cdcdf6 Mon Sep 17 00:00:00 2001 From: ck <21735205+cyperdark@users.noreply.github.com> Date: Wed, 10 Jul 2024 10:49:54 +0300 Subject: [PATCH] fix: incorrect pp for accuracy in menu --- packages/tosu/src/entities/BeatmapPpData/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/tosu/src/entities/BeatmapPpData/index.ts b/packages/tosu/src/entities/BeatmapPpData/index.ts index c82d6026..c16ef051 100644 --- a/packages/tosu/src/entities/BeatmapPpData/index.ts +++ b/packages/tosu/src/entities/BeatmapPpData/index.ts @@ -247,6 +247,7 @@ export class BeatmapPPData extends AbstractEntity { const ppAcc = {}; for (const acc of [100, 99, 98, 97, 96, 95]) { const calculate = new rosu.Performance({ + mods: currentMods, accuracy: acc }).calculate(fcPerformance); ppAcc[acc] = fixDecimals(calculate.pp);