1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-08 00:02:54 +08:00

moved back to the top

This commit is contained in:
Givikap120 2024-11-14 09:03:08 +02:00
parent 9fcf8342f0
commit b086c276ad

View File

@ -30,6 +30,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
public override double DifficultyValue() public override double DifficultyValue()
{ {
double difficulty = 0;
double weight = 1; double weight = 1;
// Sections with 0 strain are excluded to avoid worst-case time complexity of the following sort (e.g. /b/2351871). // Sections with 0 strain are excluded to avoid worst-case time complexity of the following sort (e.g. /b/2351871).
@ -45,8 +46,6 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
strains[i] *= Interpolation.Lerp(ReducedStrainBaseline, 1.0, scale); strains[i] *= Interpolation.Lerp(ReducedStrainBaseline, 1.0, scale);
} }
double difficulty = 0;
// Difficulty is the weighted sum of the highest strains from every section. // Difficulty is the weighted sum of the highest strains from every section.
// We're sorting from highest to lowest strain. // We're sorting from highest to lowest strain.
foreach (double strain in strains.OrderDescending()) foreach (double strain in strains.OrderDescending())