1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Fix allowed results omissions

This commit is contained in:
Dean Herbert 2019-09-06 15:37:20 +09:00
parent f925e781a9
commit 6cdc87bd29
2 changed files with 27 additions and 0 deletions

View File

@ -15,6 +15,20 @@ namespace osu.Game.Rulesets.Osu.Scoring
new DifficultyRange(HitResult.Miss, 200, 200, 200),
};
public override bool IsHitResultAllowed(HitResult result)
{
switch (result)
{
case HitResult.Great:
case HitResult.Good:
case HitResult.Meh:
case HitResult.Miss:
return true;
}
return false;
}
protected override DifficultyRange[] GetRanges() => osu_ranges;
}
}

View File

@ -14,6 +14,19 @@ namespace osu.Game.Rulesets.Taiko.Scoring
new DifficultyRange(HitResult.Miss, 135, 95, 70),
};
public override bool IsHitResultAllowed(HitResult result)
{
switch (result)
{
case HitResult.Great:
case HitResult.Good:
case HitResult.Miss:
return true;
}
return false;
}
protected override DifficultyRange[] GetRanges() => taiko_ranges;
}
}