2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-03-15 20:32:47 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2017-04-18 15:05:58 +08:00
|
|
|
|
using osu.Game.Rulesets.Judgements;
|
2017-12-31 04:23:18 +08:00
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
2017-03-15 17:55:38 +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
|
|
|
|
{
|
2017-09-05 18:44:59 +08:00
|
|
|
|
protected override int NumericResultFor(HitResult result)
|
2017-05-26 18:22:17 +08:00
|
|
|
|
{
|
|
|
|
|
switch (result)
|
|
|
|
|
{
|
|
|
|
|
default:
|
|
|
|
|
return 0;
|
2017-09-05 18:44:59 +08:00
|
|
|
|
case HitResult.Meh:
|
2017-05-26 18:22:17 +08:00
|
|
|
|
return 50;
|
2017-09-05 18:44:59 +08:00
|
|
|
|
case HitResult.Ok:
|
2017-05-26 18:22:17 +08:00
|
|
|
|
return 100;
|
2017-09-05 18:44:59 +08:00
|
|
|
|
case HitResult.Good:
|
2017-05-26 18:22:17 +08:00
|
|
|
|
return 200;
|
2017-09-05 18:44:59 +08:00
|
|
|
|
case HitResult.Great:
|
|
|
|
|
case HitResult.Perfect:
|
2017-05-26 18:22:17 +08:00
|
|
|
|
return 300;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-03-15 17:55:38 +08:00
|
|
|
|
}
|
|
|
|
|
}
|