mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 17:52:54 +08:00
Remove adjustment factor
This commit is contained in:
parent
70d2d8a2fa
commit
bd74d086fb
@ -51,7 +51,7 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
result.HealthAtJudgement = Health.Value;
|
result.HealthAtJudgement = Health.Value;
|
||||||
result.FailedAtJudgement = HasFailed;
|
result.FailedAtJudgement = HasFailed;
|
||||||
|
|
||||||
double healthIncrease = HealthAdjustmentFactorFor(result) * result.Judgement.HealthIncreaseFor(result);
|
double healthIncrease = result.Judgement.HealthIncreaseFor(result);
|
||||||
healthIncreases.Add((result.HitObject.GetEndTime() + result.TimeOffset, healthIncrease));
|
healthIncreases.Add((result.HitObject.GetEndTime() + result.TimeOffset, healthIncrease));
|
||||||
|
|
||||||
if (HasFailed)
|
if (HasFailed)
|
||||||
@ -73,13 +73,6 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
// Todo: Revert HasFailed state with proper player support
|
// Todo: Revert HasFailed state with proper player support
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// An adjustment factor which is multiplied into the health increase provided by a <see cref="JudgementResult"/>.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="result">The <see cref="JudgementResult"/> for which the adjustment should apply.</param>
|
|
||||||
/// <returns>The adjustment factor.</returns>
|
|
||||||
protected virtual double HealthAdjustmentFactorFor(JudgementResult result) => 1;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The default conditions for failing.
|
/// The default conditions for failing.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user