1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 01:56:07 +08:00

No more one line return for FailCondition

This commit is contained in:
Plextora 2024-12-22 17:46:01 -05:00
parent 047c448741
commit fd1cc34e3f

View File

@ -22,7 +22,12 @@ namespace osu.Game.Rulesets.Osu.Mods
[SettingSource("Fail when missing on a slider tail")]
public BindableBool SliderTailMiss { get; } = new BindableBool();
protected override bool FailCondition(HealthProcessor healthProcessor, JudgementResult result) =>
(SliderTailMiss.Value && result.HitObject is SliderTailCircle && result.Type == HitResult.IgnoreMiss) || base.FailCondition(healthProcessor, result);
protected override bool FailCondition(HealthProcessor healthProcessor, JudgementResult result)
{
if (SliderTailMiss.Value && result.HitObject is SliderTailCircle && result.Type == HitResult.IgnoreMiss)
return true;
return base.FailCondition(healthProcessor, result);
}
}
}