This commit is contained in:
Lee 2023-03-21 15:56:31 +00:00
parent 4c66a1a0a4
commit 6494fc3f17
No known key found for this signature in database
GPG Key ID: BAF8F4DB8E7F38EF

View File

@ -24,7 +24,7 @@ export function getBeatLeaderPP(acc, stars) {
if (stars === undefined || acc === undefined) {
return undefined;
}
const pp = curve(acc, stars - 0.5) * (stars + 0.5) * 42;
let pp = curve(acc, stars - 0.5) * (stars + 0.5) * 42;
const isNegativeAcc = acc < 0;
if (isNegativeAcc) {