mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-28 18:08:15 +03:00
fix: forcibly round incoming jubeat scores to 1dp
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
} from "../../../framework/common/string-asserts";
|
||||
import db from "external/mongo/db";
|
||||
import { GetGamePTConfig } from "tachi-common";
|
||||
import { RoundToNDecimalPlaces } from "utils/misc";
|
||||
import {
|
||||
FindBMSChartOnHash,
|
||||
FindChartWithPTDF,
|
||||
@@ -88,7 +89,8 @@ export const ConverterBatchManual: ConverterFunction<BatchManualScore, BatchManu
|
||||
);
|
||||
}
|
||||
|
||||
percent = data.percent;
|
||||
// jubeat music rate is forcibly round to 1dp. Funny.
|
||||
percent = RoundToNDecimalPlaces(data.percent, 1);
|
||||
|
||||
grade = JubeatGetGrade(data.score);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user