1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 05:09:58 +08:00

Compute combo for nested Objects. Display fruit depending on Combo for

osu!catch
This commit is contained in:
Hanamuke
2018-09-13 21:52:15 +02:00
Unverified
parent 40f7c1bd99
commit 1c2cc3837a
2 changed files with 10 additions and 1 deletions
@@ -16,7 +16,7 @@ namespace osu.Game.Rulesets.Catch.Objects
public int IndexInBeatmap { get; set; }
public virtual FruitVisualRepresentation VisualRepresentation => (FruitVisualRepresentation)(IndexInBeatmap % 4);
public virtual FruitVisualRepresentation VisualRepresentation => (FruitVisualRepresentation)(ComboIndex % 4);
public virtual bool NewCombo { get; set; }
+9
View File
@@ -44,6 +44,15 @@ namespace osu.Game.Beatmaps
public virtual void PostProcess()
{
foreach (var hitObject in Beatmap.HitObjects)
{
var objectComboInfo = (IHasComboInformation)hitObject;
foreach (var obj in hitObject.NestedHitObjects.OfType<IHasComboInformation>())
{
obj.IndexInCurrentCombo = objectComboInfo.IndexInCurrentCombo;
obj.ComboIndex = objectComboInfo.ComboIndex;
}
}
}
}
}