1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 09:23:06 +08:00

Add property to make the div2 internal.

This commit is contained in:
smoogipooo 2017-03-28 09:50:43 +09:00
parent 4c7a724beb
commit 4bb60607e1
2 changed files with 7 additions and 2 deletions

View File

@ -24,12 +24,12 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
{ {
if (!userTriggered) if (!userTriggered)
{ {
if (Judgement.TimeOffset > tick.TickTimeDistance / 2) if (Judgement.TimeOffset > tick.HitWindow)
Judgement.Result = HitResult.Miss; Judgement.Result = HitResult.Miss;
return; return;
} }
if (Math.Abs(Judgement.TimeOffset) < tick.TickTimeDistance / 2) if (Math.Abs(Judgement.TimeOffset) < tick.HitWindow)
{ {
Judgement.Result = HitResult.Hit; Judgement.Result = HitResult.Hit;
Judgement.TaikoResult = TaikoHitResult.Great; Judgement.TaikoResult = TaikoHitResult.Great;

View File

@ -15,5 +15,10 @@ namespace osu.Game.Modes.Taiko.Objects
/// <para>Half of this value is the hit window of the tick.</para> /// <para>Half of this value is the hit window of the tick.</para>
/// </summary> /// </summary>
public double TickTimeDistance; public double TickTimeDistance;
/// <summary>
/// The time allowed to hit this tick.
/// </summary>
public double HitWindow => TickTimeDistance / 2;
} }
} }