Skip to content

Commit

Permalink
Merge pull request #542 from smoogipooo/taiko_drumroll_tick_judgements
Browse files Browse the repository at this point in the history
Add DrumRoll tick judgement info.
  • Loading branch information
peppy authored Mar 24, 2017
2 parents dace1e1 + d7426bd commit f233725
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions osu.Game.Modes.Taiko/Judgements/TaikoDrumRollTickJudgement.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE

namespace osu.Game.Modes.Taiko.Judgements
{
public class TaikoDrumRollTickJudgement : TaikoJudgement
{
/// <summary>
/// Drum roll ticks don't display judgement text.
/// </summary>
public override string ScoreString => string.Empty;

/// <summary>
/// Drum roll ticks don't display judgement text.
/// </summary>
public override string MaxScoreString => string.Empty;

protected override int NumericResultForScore(TaikoHitResult result)
{
switch (result)
{
default:
return 0;
case TaikoHitResult.Great:
return 200;
}
}

protected override int NumericResultForAccuracy(TaikoHitResult result)
{
return 0;
}
}
}
1 change: 1 addition & 0 deletions osu.Game.Modes.Taiko/osu.Game.Modes.Taiko.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<ItemGroup>
<Compile Include="Beatmaps\TaikoBeatmapConverter.cs" />
<Compile Include="Beatmaps\TaikoBeatmapProcessor.cs" />
<Compile Include="Judgements\TaikoDrumRollTickJudgement.cs" />
<Compile Include="Judgements\TaikoJudgement.cs" />
<Compile Include="Judgements\TaikoHitResult.cs" />
<Compile Include="Objects\Drawable\DrawableTaikoHitObject.cs" />
Expand Down

0 comments on commit f233725

Please sign in to comment.