Implement Sudden Death and Perfect

- Two additional fail conditions
This commit is contained in:
Brayzure
2017-11-18 01:28:09 -05:00
parent 9c86390814
commit de4d8eb196
2 changed files with 26 additions and 3 deletions

View File

@ -227,6 +227,12 @@ namespace osu.Game.Screens.Play
// Bind ScoreProcessor to ourselves
scoreProcessor.AllJudged += onCompletion;
scoreProcessor.Failed += onFail;
if (Beatmap.Value.Mods.Value.Any(m => m.Name == "Sudden Death"))
scoreProcessor.strictFail = 1;
if (Beatmap.Value.Mods.Value.Any(m => m.Name == "Perfect"))
scoreProcessor.strictFail = 2;
}
private void applyRateFromMods()