Fix scoring simulation not supporting juice

This commit is contained in:
Dean Herbert 2017-10-10 20:22:57 +09:00
parent 03fbf47bc2
commit e4f915e5af
1 changed files with 13 additions and 0 deletions

View File

@ -21,6 +21,19 @@ protected override void SimulateAutoplay(Beatmap<CatchBaseHit> beatmap)
{ {
foreach (var obj in beatmap.HitObjects) foreach (var obj in beatmap.HitObjects)
{ {
var stream = obj as JuiceStream;
if (stream != null)
{
AddJudgement(new CatchJudgement { Result = HitResult.Perfect });
AddJudgement(new CatchJudgement { Result = HitResult.Perfect });
foreach (var unused in stream.Ticks)
AddJudgement(new CatchJudgement { Result = HitResult.Perfect });
continue;
}
var fruit = obj as Fruit; var fruit = obj as Fruit;
if (fruit != null) if (fruit != null)