2019-01-24 16:43:03 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-04-18 15:05:58 +08:00
|
|
|
|
using osu.Game.Rulesets.Judgements;
|
2020-10-03 17:08:51 +08:00
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-04-18 15:05:58 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Mania.Judgements
|
2017-03-15 17:55:38 +08:00
|
|
|
|
{
|
2017-03-23 18:00:18 +08:00
|
|
|
|
public class ManiaJudgement : Judgement
|
2017-03-15 17:55:38 +08:00
|
|
|
|
{
|
2020-10-03 17:08:51 +08:00
|
|
|
|
protected override double HealthIncreaseFor(HitResult result)
|
|
|
|
|
{
|
|
|
|
|
switch (result)
|
|
|
|
|
{
|
|
|
|
|
case HitResult.Meh:
|
|
|
|
|
return -DEFAULT_MAX_HEALTH_INCREASE * 0.5;
|
|
|
|
|
|
|
|
|
|
case HitResult.Ok:
|
|
|
|
|
return -DEFAULT_MAX_HEALTH_INCREASE * 0.3;
|
|
|
|
|
|
|
|
|
|
case HitResult.Good:
|
|
|
|
|
return DEFAULT_MAX_HEALTH_INCREASE * 0.1;
|
|
|
|
|
|
|
|
|
|
case HitResult.Great:
|
|
|
|
|
return DEFAULT_MAX_HEALTH_INCREASE * 0.8;
|
|
|
|
|
|
|
|
|
|
case HitResult.Perfect:
|
|
|
|
|
return DEFAULT_MAX_HEALTH_INCREASE;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
return base.HealthIncreaseFor(result);
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-03-15 17:55:38 +08:00
|
|
|
|
}
|
|
|
|
|
}
|