1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 17:17:24 +08:00

Add ToString for Judgements to ease debugging

This commit is contained in:
Dean Herbert 2019-02-21 21:22:16 +09:00
parent d637b184e4
commit f919f2252f
2 changed files with 4 additions and 0 deletions

View File

@ -58,5 +58,7 @@ namespace osu.Game.Rulesets.Judgements
/// <param name="result">The <see cref="JudgementResult"/> to find the numeric health increase for.</param> /// <param name="result">The <see cref="JudgementResult"/> to find the numeric health increase for.</param>
/// <returns>The numeric health increase of <paramref name="result"/>.</returns> /// <returns>The numeric health increase of <paramref name="result"/>.</returns>
public double HealthIncreaseFor(JudgementResult result) => HealthIncreaseFor(result.Type); public double HealthIncreaseFor(JudgementResult result) => HealthIncreaseFor(result.Type);
public override string ToString() => $"AffectsCombo:{AffectsCombo} MaxResult:{MaxResult} MaxScore:{MaxNumericResult}";
} }
} }

View File

@ -55,5 +55,7 @@ namespace osu.Game.Rulesets.Judgements
{ {
Judgement = judgement; Judgement = judgement;
} }
public override string ToString() => $"{Type} (Score:{Judgement.NumericResultFor(this)} HP:{Judgement.HealthIncreaseFor(this)} {Judgement})";
} }
} }