Skip to content

Commit

Permalink
Disable hold end conversion for mania HoldOff mod
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Aug 15, 2023
1 parent 4e96853 commit e34a9a0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions osu.Game.Rulesets.Mania/Mods/ManiaModHoldOff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,6 @@ public void ApplyToBeatmap(IBeatmap beatmap)
StartTime = h.StartTime,
Samples = h.GetNodeSamples(0)
});

// Don't add an end note if the duration is shorter than the threshold
double noteValue = GetNoteDurationInBeatLength(h, maniaBeatmap); // 1/1, 1/2, 1/4, etc.

if (noteValue >= END_NOTE_ALLOW_THRESHOLD)
{
newObjects.Add(new Note
{
Column = h.Column,
StartTime = h.EndTime,
Samples = h.GetNodeSamples((h.NodeSamples?.Count - 1) ?? 1)
});
}
}

maniaBeatmap.HitObjects = maniaBeatmap.HitObjects.OfType<Note>().Concat(newObjects).OrderBy(h => h.StartTime).ToList();
Expand Down

0 comments on commit e34a9a0

Please sign in to comment.