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:
parent
d637b184e4
commit
f919f2252f
@ -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}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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})";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user