fix: whoops

This commit is contained in:
zkldi
2023-01-19 16:39:42 +00:00
parent cbc83c74e4
commit 2b0e65f0c8
@@ -64,11 +64,9 @@ const BMS_IMPL: GPTServerImplementation<GPTStrings["bms" | "pms"]> = {
IIDXLIKE_GBOUNDARIES[goalValue]!.name,
// use notecount to turn the percent deltas into whole ex-scores.
(deltaPercent) => {
const chartNotecount = Math.floor(
pb.scoreData.score / (pb.scoreData.percent / 100)
);
const max = Math.floor(pb.scoreData.score / (pb.scoreData.percent / 100));
return (deltaPercent * (chartNotecount * 2)).toFixed(0);
return ((deltaPercent / 100) * max).toFixed(0);
}
),
},