Make Perfect auto restart toggleable

This commit is contained in:
PercyDan
2021-08-12 10:12:35 +08:00
parent 4706dcf525
commit 18ecd8758b
3 changed files with 10 additions and 5 deletions

View File

@ -21,6 +21,11 @@ namespace osu.Game.Rulesets.Mods
public override Type[] IncompatibleMods => base.IncompatibleMods.Append(typeof(ModSuddenDeath)).ToArray();
protected ModPerfect()
{
Restart.Value = Restart.Default = true;
}
protected override bool FailCondition(HealthProcessor healthProcessor, JudgementResult result)
=> result.Type.AffectsAccuracy()
&& result.Type != result.Judgement.MaxResult;