mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 17:27:48 +08:00
Replace LINQ queries with recommendations
This commit is contained in:
parent
9e279c3ebc
commit
a6b6644c2e
@ -96,12 +96,12 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
|
|||||||
}
|
}
|
||||||
|
|
||||||
// we should only be checking the bonus/progress after the spinner has fully completed.
|
// we should only be checking the bonus/progress after the spinner has fully completed.
|
||||||
if (!results.OfType<OsuSpinnerJudgementResult>().Any(r => r.TimeCompleted != null))
|
if (results.OfType<OsuSpinnerJudgementResult>().All(r => r.TimeCompleted == null))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
results.Any(r => r.Type == HitResult.SmallBonus)
|
results.Any(r => r.Type == HitResult.SmallBonus)
|
||||||
&& !results.Any(r => r.Type == HitResult.LargeBonus);
|
&& results.All(r => r.Type != HitResult.LargeBonus);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user