Cleanup + renaming

This commit is contained in:
smoogipoo
2017-11-21 17:09:22 +09:00
parent 2b0295ed86
commit 1b27ce6198
4 changed files with 11 additions and 22 deletions

View File

@ -18,14 +18,11 @@ namespace osu.Game.Rulesets.Mods
public override bool Ranked => true;
public override Type[] IncompatibleMods => new[] { typeof(ModNoFail), typeof(ModRelax), typeof(ModAutoplay) };
public bool OnFailCheck(ScoreProcessor scoreProcessor)
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
{
return scoreProcessor.Combo.Value != scoreProcessor.HighestCombo.Value;
scoreProcessor.FailConditions += FailCondition;
}
public virtual void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
{
scoreProcessor.FailChecker += OnFailCheck;
}
protected virtual bool FailCondition(ScoreProcessor scoreProcessor) => scoreProcessor.Combo.Value != scoreProcessor.HighestCombo.Value;
}
}