Skip to content

Commit

Permalink
Fixed strain count value works only on standard
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDark98 committed Jan 11, 2025
1 parent 844943e commit 2243fd0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions osu.Game.Rulesets.Osu/Difficulty/Skills/OsuStrainSkill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ public override double DifficultyValue()

List<double> strains = peaks.OrderDescending().ToList();

AddedStrain = strains.Count;

foreach (double strain in strains.OrderDescending())
{
AddStrain(strain);
Expand Down
1 change: 1 addition & 0 deletions osu.Game/Rulesets/Difficulty/Skills/StrainSkill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ protected void AddStrain(double currentStrain)

if (maxDifficulty < currentStrain)
maxDifficulty = currentStrain;
AddedStrain++;
}
public override double DifficultyFactor() => summedDifficulty / AddedStrain / maxDifficulty;
}
Expand Down

0 comments on commit 2243fd0

Please sign in to comment.