mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +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.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>
|
||||
|
Loading…
Reference in New Issue
Block a user