mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09:00
Rename method to better reflect what it's doing
This commit is contained in:
parent
fb6a112708
commit
cccc9d7d39
@ -43,7 +43,7 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
|
|
||||||
Health.Value += GetHealthIncreaseFor(result);
|
Health.Value += GetHealthIncreaseFor(result);
|
||||||
|
|
||||||
if (meetsFailConditions(result))
|
if (meetsAnyFailCondition(result))
|
||||||
{
|
{
|
||||||
if (Failed?.Invoke() != false)
|
if (Failed?.Invoke() != false)
|
||||||
HasFailed = true;
|
HasFailed = true;
|
||||||
@ -70,10 +70,10 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
protected virtual bool DefaultFailCondition => Precision.AlmostBigger(Health.MinValue, Health.Value);
|
protected virtual bool DefaultFailCondition => Precision.AlmostBigger(Health.MinValue, Health.Value);
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
/// <param name="result">The judgement result.</param>
|
/// <param name="result">The judgement result.</param>
|
||||||
private bool meetsFailConditions(JudgementResult result)
|
private bool meetsAnyFailCondition(JudgementResult result)
|
||||||
{
|
{
|
||||||
if (DefaultFailCondition)
|
if (DefaultFailCondition)
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user