Skip to content

Commit

Permalink
removed mania only related things
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDark98 committed Jan 12, 2025
1 parent 10b8c19 commit 91e1342
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ public class ManiaDifficultyAttributes : DifficultyAttributes
[JsonProperty("great_hit_window")]
public double GreatHitWindow { get; set; }

/// <summary>
/// Strain factor for every colomn.
/// </summary>
[JsonProperty("strain_factor")]
public double StrainFactor { get; set; }

public override IEnumerable<(int attributeId, object value)> ToDatabaseAttributes()
{
foreach (var v in base.ToDatabaseAttributes())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ protected override DifficultyAttributes CreateDifficultyAttributes(IBeatmap beat
// In osu-stable mania, rate-adjustment mods don't affect the hit window.
// This is done the way it is to introduce fractional differences in order to match osu-stable for the time being.
GreatHitWindow = Math.Ceiling((int)(getHitWindow300(mods) * clockRate) / clockRate),
StrainFactor = skills[0].DifficultyFactor(),
MaxCombo = beatmap.HitObjects.Sum(maxComboForObject),
};

Expand Down
2 changes: 0 additions & 2 deletions osu.Game.Rulesets.Mania/Difficulty/Skills/Strain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ protected override double StrainValueOf(DifficultyHitObject current)
startTimes[column] = startTime;
endTimes[column] = endTime;

AddStrain(individualStrain);

// By subtracting CurrentStrain, this skill effectively only considers the maximum strain of any one hitobject within each strain section.
return individualStrain + overallStrain - CurrentStrain;
}
Expand Down

0 comments on commit 91e1342

Please sign in to comment.