mirror of https://github.com/ppy/osu
Rename method to better reflect what it's doing
This commit is contained in:
parent
fb6a112708
commit
cccc9d7d39
|
@ -43,7 +43,7 @@ protected override void ApplyResultInternal(JudgementResult result)
|
|||
|
||||
Health.Value += GetHealthIncreaseFor(result);
|
||||
|
||||
if (meetsFailConditions(result))
|
||||
if (meetsAnyFailCondition(result))
|
||||
{
|
||||
if (Failed?.Invoke() != false)
|
||||
HasFailed = true;
|
||||
|
@ -70,10 +70,10 @@ protected override void RevertResultInternal(JudgementResult result)
|
|||
protected virtual bool DefaultFailCondition => Precision.AlmostBigger(Health.MinValue, Health.Value);
|
||||
|
||||
/// <summary>
|
||||
/// Whether the current state of <see cref="HealthProcessor"/> or the provided <paramref name="result"/> meets the fail conditions.
|
||||
/// Whether the current state of <see cref="HealthProcessor"/> or the provided <paramref name="result"/> meets any fail condition.
|
||||
/// </summary>
|
||||
/// <param name="result">The judgement result.</param>
|
||||
private bool meetsFailConditions(JudgementResult result)
|
||||
private bool meetsAnyFailCondition(JudgementResult result)
|
||||
{
|
||||
if (DefaultFailCondition)
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue