1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-05 20:24:45 +08:00

Remove adjustment factor

This commit is contained in:
smoogipoo
2019-12-25 13:33:50 +09:00
Unverified
parent 70d2d8a2fa
commit bd74d086fb
+1 -8
View File
@@ -51,7 +51,7 @@ namespace osu.Game.Rulesets.Scoring
result.HealthAtJudgement = Health.Value;
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));
if (HasFailed)
@@ -73,13 +73,6 @@ namespace osu.Game.Rulesets.Scoring
// 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>
/// The default conditions for failing.
/// </summary>