mirror of
https://github.com/osukey/osukey.git
synced 2025-07-10 12:49:56 +09:00
Merge UpdateFailed and CheckAlternateFailConditions
This commit is contained in:
@ -126,7 +126,10 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected void UpdateFailed()
|
protected void UpdateFailed()
|
||||||
{
|
{
|
||||||
if (HasFailed || !DefaultFailCondition)
|
if (HasFailed)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (!DefaultFailCondition && FailConditions?.Invoke(this) != true)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (Failed?.Invoke() != false)
|
if (Failed?.Invoke() != false)
|
||||||
@ -145,18 +148,6 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
AllJudged?.Invoke();
|
AllJudged?.Invoke();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void CheckAlternateFailConditions()
|
|
||||||
{
|
|
||||||
if (HasFailed)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (FailConditions?.Invoke(this) == true)
|
|
||||||
{
|
|
||||||
if (Failed?.Invoke() != false)
|
|
||||||
HasFailed = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieve a score populated with data for the current play this processor is responsible for.
|
/// Retrieve a score populated with data for the current play this processor is responsible for.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -233,8 +224,6 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
OnNewJudgement(judgement);
|
OnNewJudgement(judgement);
|
||||||
updateScore();
|
updateScore();
|
||||||
|
|
||||||
CheckAlternateFailConditions();
|
|
||||||
|
|
||||||
NotifyNewJudgement(judgement);
|
NotifyNewJudgement(judgement);
|
||||||
UpdateFailed();
|
UpdateFailed();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user