mirror of
https://github.com/ppy/osu
synced 2025-02-03 03:42:15 +00:00
Compute combo for nested Objects. Display fruit depending on Combo for
osu!catch
This commit is contained in:
parent
40f7c1bd99
commit
1c2cc3837a
@ -16,7 +16,7 @@ namespace osu.Game.Rulesets.Catch.Objects
|
|||||||
|
|
||||||
public int IndexInBeatmap { get; set; }
|
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; }
|
public virtual bool NewCombo { get; set; }
|
||||||
|
|
||||||
|
@ -44,6 +44,15 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
public virtual void PostProcess()
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user