mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:07:52 +08:00
Add helper method to bypass judgement woes
This commit is contained in:
parent
24a06e1d65
commit
57a6025a2c
@ -94,6 +94,11 @@ namespace osu.Game.Rulesets.Judgements
|
||||
/// </summary>
|
||||
public bool IsHit => Type.IsHit();
|
||||
|
||||
/// <summary>
|
||||
/// The increase in health resulting from this judgement result.
|
||||
/// </summary>
|
||||
public double HealthIncrease => Judgement.HealthIncreaseFor(this);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="JudgementResult"/>.
|
||||
/// </summary>
|
||||
|
@ -66,7 +66,7 @@ namespace osu.Game.Rulesets.Scoring
|
||||
/// </summary>
|
||||
/// <param name="result">The <see cref="JudgementResult"/>.</param>
|
||||
/// <returns>The health increase.</returns>
|
||||
protected virtual double GetHealthIncreaseFor(JudgementResult result) => result.Judgement.HealthIncreaseFor(result);
|
||||
protected virtual double GetHealthIncreaseFor(JudgementResult result) => result.HealthIncrease;
|
||||
|
||||
/// <summary>
|
||||
/// The default conditions for failing.
|
||||
|
Loading…
Reference in New Issue
Block a user