Rename method to better reflect what it's doing

This commit is contained in:
Salman Ahmed 2022-04-27 00:03:48 +03:00
parent fb6a112708
commit cccc9d7d39
1 changed files with 3 additions and 3 deletions

View File

@ -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;