1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 18:27:18 +08:00

32 lines
1023 B
C#
Raw Normal View History

2018-01-05 20:21:19 +09:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
2017-03-15 21:32:47 +09:00
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2017-04-18 16:05:58 +09:00
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Scoring;
2017-04-18 16:05:58 +09:00
namespace osu.Game.Rulesets.Taiko.Judgements
{
public class TaikoJudgement : Judgement
{
public override HitResult MaxResult => HitResult.Great;
2017-03-17 17:06:34 +09:00
/// <summary>
/// Computes the numeric result value for the combo portion of the score.
2017-03-17 17:06:34 +09:00
/// </summary>
/// <param name="result">The result to compute the value for.</param>
/// <returns>The numeric result value.</returns>
2017-09-05 19:44:59 +09:00
protected override int NumericResultFor(HitResult result)
2017-03-17 17:06:34 +09:00
{
switch (result)
{
default:
return 0;
2017-09-05 19:44:59 +09:00
case HitResult.Good:
2017-03-17 17:06:34 +09:00
return 100;
2017-09-05 19:44:59 +09:00
case HitResult.Great:
2017-03-17 17:06:34 +09:00
return 300;
}
}
}
}