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:
parent
c9208d7d2d
commit
9012dea523
6 changed files with 15 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue