From b85fb3e96a90b2cd2869654ee4b2afa330b57f45 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Wed, 20 Nov 2024 15:39:17 +0900 Subject: [PATCH] Apply adjustments for struct attributes --- .../ServerDifficultyCalculator.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs b/osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs index 8f303b7..85c28aa 100644 --- a/osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs +++ b/osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs @@ -104,12 +104,12 @@ private void run(WorkingBeatmap beatmap, Action(); - foreach (var mapping in attribute.ToDatabaseAttributes()) + foreach (var mapping in attributes.ToDatabaseAttributes()) { parameters.Add(new { @@ -168,13 +168,13 @@ private void processDifficulty(ProcessableItem item, MySqlConnection conn) object param = new { BeatmapId = item.BeatmapID, - Diff = attribute.StarRating, + Diff = attributes.StarRating, AR = item.WorkingBeatmap.BeatmapInfo.Difficulty.ApproachRate, OD = item.WorkingBeatmap.BeatmapInfo.Difficulty.OverallDifficulty, HP = item.WorkingBeatmap.BeatmapInfo.Difficulty.DrainRate, CS = item.WorkingBeatmap.BeatmapInfo.Difficulty.CircleSize, BPM = Math.Round(bpm, 2), - MaxCombo = attribute.MaxCombo, + MaxCombo = attributes.MaxCombo, CountCircle = countCircle, CountSlider = countSlider, CountSpinner = countSpinner,