mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Move implementation to DrawableHit to avoid "breaking" legacy encoding
This commit is contained in:
@ -171,30 +171,6 @@ namespace osu.Game.Rulesets.Taiko.Beatmaps
|
||||
|
||||
bool isRim = samples.Any(isRimDefinition);
|
||||
|
||||
if (isRim)
|
||||
{
|
||||
// consume then remove the rim definition sample types.
|
||||
var updatedSamples = samples.Where(s => !isRimDefinition(s)).ToList();
|
||||
|
||||
// strong + rim always maps to whistle.
|
||||
if (strong)
|
||||
{
|
||||
for (var i = 0; i < updatedSamples.Count; i++)
|
||||
{
|
||||
var s = samples[i];
|
||||
|
||||
if (s.Name != HitSampleInfo.HIT_FINISH)
|
||||
continue;
|
||||
|
||||
var sClone = s.Clone();
|
||||
sClone.Name = HitSampleInfo.HIT_WHISTLE;
|
||||
updatedSamples[i] = sClone;
|
||||
}
|
||||
}
|
||||
|
||||
samples = updatedSamples;
|
||||
}
|
||||
|
||||
yield return new Hit
|
||||
{
|
||||
StartTime = obj.StartTime,
|
||||
|
Reference in New Issue
Block a user