Adjust osu! hitobject fade-ins to support AR>10

This commit is contained in:
smoogipoo
2020-12-10 00:26:35 +09:00
parent ac91f0e270
commit 47a93d8614
2 changed files with 6 additions and 2 deletions

View File

@ -110,8 +110,11 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Connections
double startTime = start.GetEndTime();
double duration = end.StartTime - startTime;
// For now, adjust the pre-empt for approach rates > 10.
double preempt = PREEMPT * Math.Min(1, start.TimePreempt / 450);
fadeOutTime = startTime + fraction * duration;
fadeInTime = fadeOutTime - PREEMPT;
fadeInTime = fadeOutTime - preempt;
}
}
}