Add judgements to catch

This commit is contained in:
clayton
2018-06-09 17:38:17 -07:00
parent d5e42a8daa
commit f486bcfee1
12 changed files with 194 additions and 14 deletions

View File

@ -5,7 +5,7 @@ using System;
using System.Linq;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Catch.Judgements;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.Scoring;
@ -31,7 +31,7 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawable
protected override void CheckForJudgements(bool userTriggered, double timeOffset)
{
if (timeOffset >= 0)
AddJudgement(new Judgement { Result = NestedHitObjects.Cast<DrawableCatchHitObject>().Any(n => n.Judgements.Any(j => j.IsHit)) ? HitResult.Perfect : HitResult.Miss });
AddJudgement(new CatchBananaShowerJudgement());
}
protected override void AddNested(DrawableHitObject h)