mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:23:22 +08:00
Rework special case for strong hits
This commit is contained in:
parent
dc6acf6ec9
commit
d46643ec52
@ -270,16 +270,12 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
|
|
||||||
if (characterDrawable.Drawable is DrawableTaikoMascot mascot)
|
if (characterDrawable.Drawable is DrawableTaikoMascot mascot)
|
||||||
{
|
{
|
||||||
var isFailing = result.Type == HitResult.Miss;
|
var miss = result.Type == HitResult.Miss;
|
||||||
|
|
||||||
// Only take combo in consideration when it's not a strong hit (it's always false)
|
if (miss && judgedObject.HitObject is StrongHitObject)
|
||||||
if (!(judgedObject.HitObject is StrongHitObject))
|
miss = result.Judgement.AffectsCombo;
|
||||||
{
|
|
||||||
if (isFailing)
|
|
||||||
isFailing = result.Judgement.AffectsCombo;
|
|
||||||
}
|
|
||||||
|
|
||||||
mascot.PlayfieldState.Value = isFailing ? TaikoMascotAnimationState.Fail : TaikoMascotAnimationState.Idle;
|
mascot.PlayfieldState.Value = miss ? TaikoMascotAnimationState.Fail : TaikoMascotAnimationState.Idle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user