mirror of
https://github.com/ppy/osu-tools.git
synced 2025-06-07 23:07:01 +09:00
Remove unnecessary local
This commit is contained in:
parent
8ebeeaf26f
commit
8c55f803d3
1 changed files with 1 additions and 4 deletions
|
@ -9,7 +9,6 @@ using osu.Game.Beatmaps;
|
|||
using osu.Game.Database;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
using osu.Game.Rulesets;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osu.Game.Rulesets.Scoring.Legacy;
|
||||
using osu.Game.Scoring;
|
||||
using osu.Game.Scoring.Legacy;
|
||||
|
@ -38,8 +37,6 @@ namespace PerformanceCalculator.Performance
|
|||
var workingBeatmap = ProcessorWorkingBeatmap.FromFileOrId(score.ScoreInfo.BeatmapInfo!.OnlineID.ToString());
|
||||
var playableBeatmap = workingBeatmap.GetPlayableBeatmap(ruleset.RulesetInfo, score.ScoreInfo.Mods);
|
||||
|
||||
Mod[] difficultyMods = score.ScoreInfo.Mods;
|
||||
|
||||
if (score.ScoreInfo.IsLegacyScore)
|
||||
{
|
||||
score.ScoreInfo.LegacyTotalScore = (int)score.ScoreInfo.TotalScore;
|
||||
|
@ -51,7 +48,7 @@ namespace PerformanceCalculator.Performance
|
|||
((ILegacyRuleset)ruleset).CreateLegacyScoreSimulator().Simulate(workingBeatmap, playableBeatmap));
|
||||
}
|
||||
|
||||
var difficultyAttributes = ruleset.CreateDifficultyCalculator(workingBeatmap).Calculate(difficultyMods);
|
||||
var difficultyAttributes = ruleset.CreateDifficultyCalculator(workingBeatmap).Calculate(score.ScoreInfo.Mods);
|
||||
var performanceCalculator = score.ScoreInfo.Ruleset.CreateInstance().CreatePerformanceCalculator();
|
||||
var performanceAttributes = performanceCalculator?.Calculate(score.ScoreInfo, difficultyAttributes);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue