Add combo numbers.

This commit is contained in:
Dean Herbert
2017-02-15 23:23:55 +09:00
parent bab219c428
commit 7fbc5990d1
5 changed files with 44 additions and 10 deletions

View File

@ -15,8 +15,14 @@ namespace osu.Game.Modes.Osu.Objects
{
List<OsuHitObject> output = new List<OsuHitObject>();
int combo = 0;
foreach (HitObject h in beatmap.HitObjects)
{
if (h.NewCombo) combo = 0;
h.ComboIndex = combo++;
output.Add(h as OsuHitObject);
}
UpdateStacking(output, beatmap.BeatmapInfo?.StackLeniency ?? 0.7f);