1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 00:50:16 +08:00

Remove nested ternary

This commit is contained in:
Dean Herbert
2023-11-02 23:42:52 +09:00
Unverified
parent bf9f20705f
commit ac6fb386d1
@@ -65,14 +65,17 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
{
Debug.Assert(HitObject != null);
return HitObject.ClassicSliderBehaviour
// In classic slider behaviour, heads are considered fully hit if in the largest hit window.
if (HitObject.ClassicSliderBehaviour)
{
// With classic slider behaviour, heads are considered fully hit if in the largest hit window.
// We can't award a full Great because the true Great judgement is awarded on the Slider itself,
// reduced based on number of ticks hit.
//
// so we use the most suitable LargeTick judgement here instead.
? base.ResultFor(timeOffset).IsHit() ? HitResult.LargeTickHit : HitResult.LargeTickMiss
: base.ResultFor(timeOffset);
return base.ResultFor(timeOffset).IsHit() ? HitResult.LargeTickHit : HitResult.LargeTickMiss;
}
return base.ResultFor(timeOffset);
}
public override void Shake()