1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

More permissive IsHitResultAllow by default

This commit is contained in:
Dean Herbert 2019-09-06 15:37:30 +09:00
parent 6cdc87bd29
commit 4031f51745

View File

@ -93,18 +93,7 @@ namespace osu.Game.Rulesets.Scoring
/// </summary> /// </summary>
/// <param name="result">The result type to check.</param> /// <param name="result">The result type to check.</param>
/// <returns>Whether the <see cref="HitResult"/> can be achieved.</returns> /// <returns>Whether the <see cref="HitResult"/> can be achieved.</returns>
public virtual bool IsHitResultAllowed(HitResult result) public virtual bool IsHitResultAllowed(HitResult result) => true;
{
switch (result)
{
case HitResult.Perfect:
case HitResult.Ok:
return false;
default:
return true;
}
}
/// <summary> /// <summary>
/// Sets hit windows with values that correspond to a difficulty parameter. /// Sets hit windows with values that correspond to a difficulty parameter.