Skip to content

Commit

Permalink
moved back to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
Givikap120 committed Nov 14, 2024
1 parent 9fcf834 commit b086c27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions osu.Game.Rulesets.Osu/Difficulty/Skills/OsuStrainSkill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ protected OsuStrainSkill(Mod[] mods)

public override double DifficultyValue()
{
double difficulty = 0;
double weight = 1;

// Sections with 0 strain are excluded to avoid worst-case time complexity of the following sort (e.g. /b/2351871).
Expand All @@ -45,8 +46,6 @@ public override double DifficultyValue()
strains[i] *= Interpolation.Lerp(ReducedStrainBaseline, 1.0, scale);
}

double difficulty = 0;

// Difficulty is the weighted sum of the highest strains from every section.
// We're sorting from highest to lowest strain.
foreach (double strain in strains.OrderDescending())
Expand Down

0 comments on commit b086c27

Please sign in to comment.