mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Implement partial strong hit judgements.
This commit is contained in:
parent
3050039972
commit
c0dae89844
@ -22,7 +22,7 @@ namespace osu.Game.Modes.Taiko.Judgements
|
|||||||
/// The result value for the combo portion of the score.
|
/// The result value for the combo portion of the score.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int ResultValueForScore => NumericResultForScore(TaikoResult);
|
public int ResultValueForScore => NumericResultForScore(TaikoResult);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The result value for the accuracy portion of the score.
|
/// The result value for the accuracy portion of the score.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -32,7 +32,7 @@ namespace osu.Game.Modes.Taiko.Judgements
|
|||||||
/// The maximum result value for the combo portion of the score.
|
/// The maximum result value for the combo portion of the score.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaxResultValueForScore => NumericResultForScore(MAX_HIT_RESULT);
|
public int MaxResultValueForScore => NumericResultForScore(MAX_HIT_RESULT);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The maximum result value for the accuracy portion of the score.
|
/// The maximum result value for the accuracy portion of the score.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -45,7 +45,7 @@ namespace osu.Game.Modes.Taiko.Judgements
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether this Judgement has a secondary hit in the case of finishers.
|
/// Whether this Judgement has a secondary hit in the case of finishers.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool SecondHit;
|
public virtual bool SecondHit { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Computes the numeric result value for the combo portion of the score.
|
/// Computes the numeric result value for the combo portion of the score.
|
||||||
|
25
osu.Game.Modes.Taiko/Judgements/TaikoStrongHitJudgement.cs
Normal file
25
osu.Game.Modes.Taiko/Judgements/TaikoStrongHitJudgement.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using osu.Game.Modes.Judgements;
|
||||||
|
|
||||||
|
namespace osu.Game.Modes.Taiko.Judgements
|
||||||
|
{
|
||||||
|
public class TaikoStrongHitJudgement : TaikoJudgement, IPartialJudgement
|
||||||
|
{
|
||||||
|
public bool Changed { get; set; }
|
||||||
|
|
||||||
|
public override bool SecondHit
|
||||||
|
{
|
||||||
|
get { return base.SecondHit; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (base.SecondHit == value)
|
||||||
|
return;
|
||||||
|
base.SecondHit = value;
|
||||||
|
|
||||||
|
Changed = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -6,6 +6,7 @@ using System;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Input;
|
using osu.Framework.Input;
|
||||||
using osu.Game.Modes.Objects.Drawables;
|
using osu.Game.Modes.Objects.Drawables;
|
||||||
|
using osu.Game.Modes.Taiko.Judgements;
|
||||||
|
|
||||||
namespace osu.Game.Modes.Taiko.Objects.Drawable
|
namespace osu.Game.Modes.Taiko.Objects.Drawable
|
||||||
{
|
{
|
||||||
@ -26,6 +27,8 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override TaikoJudgement CreateJudgement() => new TaikoStrongHitJudgement();
|
||||||
|
|
||||||
protected override void CheckJudgement(bool userTriggered)
|
protected override void CheckJudgement(bool userTriggered)
|
||||||
{
|
{
|
||||||
if (Judgement.Result == HitResult.None)
|
if (Judgement.Result == HitResult.None)
|
||||||
|
@ -50,6 +50,7 @@
|
|||||||
<Compile Include="Beatmaps\TaikoBeatmapConverter.cs" />
|
<Compile Include="Beatmaps\TaikoBeatmapConverter.cs" />
|
||||||
<Compile Include="Beatmaps\TaikoBeatmapProcessor.cs" />
|
<Compile Include="Beatmaps\TaikoBeatmapProcessor.cs" />
|
||||||
<Compile Include="Judgements\TaikoDrumRollTickJudgement.cs" />
|
<Compile Include="Judgements\TaikoDrumRollTickJudgement.cs" />
|
||||||
|
<Compile Include="Judgements\TaikoStrongHitJudgement.cs" />
|
||||||
<Compile Include="Judgements\TaikoJudgement.cs" />
|
<Compile Include="Judgements\TaikoJudgement.cs" />
|
||||||
<Compile Include="Judgements\TaikoHitResult.cs" />
|
<Compile Include="Judgements\TaikoHitResult.cs" />
|
||||||
<Compile Include="Objects\Drawable\DrawableRimHit.cs" />
|
<Compile Include="Objects\Drawable\DrawableRimHit.cs" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user