1
0
Fork 0
mirror of https://github.com/ppy/osu-tools.git synced 2025-06-08 07:17:01 +09:00

Update commands after game-side changes to accuracy/rank calculation

This commit is contained in:
Bartłomiej Dach 2024-01-29 22:12:49 +01:00
parent c9208d7d2d
commit 9012dea523
No known key found for this signature in database
6 changed files with 15 additions and 2 deletions

View file

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Beatmaps;
using osu.Game.Database;
using osu.Game.Rulesets;
using osu.Game.Scoring;
using osu.Game.Scoring.Legacy;
@ -23,7 +24,8 @@ namespace PerformanceCalculatorGUI
public Score Parse(ScoreInfo scoreInfo)
{
var score = new Score { ScoreInfo = scoreInfo };
PopulateLegacyAccuracyAndRank(score.ScoreInfo);
score.ScoreInfo.LegacyTotalScore = score.ScoreInfo.TotalScore;
StandardisedScoreMigrationTools.UpdateFromLegacy(score.ScoreInfo, beatmap);
return score;
}