1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 23:47:24 +08:00

No need to compute end time manually anymore.

This commit is contained in:
smoogipooo 2017-04-03 15:05:12 +09:00
parent 774e15b89d
commit a03cffab58

View File

@ -87,14 +87,13 @@ namespace osu.Game.Modes.Taiko.Beatmaps
{
double hitMultiplier = BeatmapDifficulty.DifficultyRange(beatmap.BeatmapInfo.Difficulty.OverallDifficulty, 3, 5, 7.5) * bash_convert_factor;
// We compute the end time manually to add in the Bash convert factor
yield return new Swell
{
StartTime = obj.StartTime,
Sample = obj.Sample,
IsStrong = strong,
EndTime = obj.StartTime + endTimeData.Duration,
EndTime = endTimeData.EndTime,
RequiredHits = (int)Math.Max(1, endTimeData.Duration / 1000 * hitMultiplier)
};
}