1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 04:22:54 +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; 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 yield return new Swell
{ {
StartTime = obj.StartTime, StartTime = obj.StartTime,
Sample = obj.Sample, Sample = obj.Sample,
IsStrong = strong, IsStrong = strong,
EndTime = obj.StartTime + endTimeData.Duration, EndTime = endTimeData.EndTime,
RequiredHits = (int)Math.Max(1, endTimeData.Duration / 1000 * hitMultiplier) RequiredHits = (int)Math.Max(1, endTimeData.Duration / 1000 * hitMultiplier)
}; };
} }