mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
only affect spinner, hitcircle and slider and nothing else.
This commit is contained in:
parent
d070a3e2d8
commit
c374755cc8
@ -22,13 +22,15 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
public override string Description => "Everything rotates. EVERYTHING.";
|
||||
public override double ScoreMultiplier => 1;
|
||||
|
||||
private readonly IReadOnlyList<Type> TargetHitObjectTypes = new List<Type>() {
|
||||
typeof(HitCircle),
|
||||
typeof(Slider),
|
||||
typeof(Spinner),
|
||||
};
|
||||
|
||||
public void ApplyToDrawableHitObjects(IEnumerable<DrawableHitObject> drawables)
|
||||
{
|
||||
drawables.Where(drawable => (
|
||||
drawable is DrawableHitCircle ||
|
||||
drawable is DrawableSlider ||
|
||||
drawable is DrawableSpinner
|
||||
)).ForEach(drawable =>
|
||||
drawables.ForEach(drawable =>
|
||||
drawable.ApplyCustomUpdateState += drawableOnApplyCustomUpdateState
|
||||
);
|
||||
}
|
||||
@ -39,6 +41,9 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
{
|
||||
var hitObject = (OsuHitObject) drawable.HitObject;
|
||||
|
||||
if (!TargetHitObjectTypes.Contains(hitObject.GetType()))
|
||||
return;
|
||||
|
||||
float appear_distance = (float)hitObject.TimePreempt * 0.5f;
|
||||
|
||||
Vector2 originalPosition = drawable.Position;
|
||||
|
Loading…
Reference in New Issue
Block a user