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
1 changed files with 1 additions and 2 deletions

View File

@ -87,14 +87,13 @@ private IEnumerable<TaikoHitObject> convertHitObject(HitObject obj, Beatmap beat
{
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)
};
}