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:
parent
4c7a724beb
commit
4bb60607e1
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user