mirror of
https://github.com/ppy/osu
synced 2024-12-11 01:19:26 +00:00
Fix health not being calculated in osu! mode (regression).
This commit is contained in:
parent
f64af9bce3
commit
a1aed44f10
@ -30,6 +30,19 @@ namespace osu.Game.Modes.Osu.Scoring
|
|||||||
|
|
||||||
protected override void OnNewJudgement(OsuJudgement judgement)
|
protected override void OnNewJudgement(OsuJudgement judgement)
|
||||||
{
|
{
|
||||||
|
if (judgement != null)
|
||||||
|
{
|
||||||
|
switch (judgement.Result)
|
||||||
|
{
|
||||||
|
case HitResult.Hit:
|
||||||
|
Health.Value += 0.1f;
|
||||||
|
break;
|
||||||
|
case HitResult.Miss:
|
||||||
|
Health.Value -= 0.2f;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int score = 0;
|
int score = 0;
|
||||||
int maxScore = 0;
|
int maxScore = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user