2019-08-21 02:17:27 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Game.Rulesets.Judgements;
|
|
|
|
using osu.Game.Rulesets.Osu.Judgements;
|
2019-09-07 22:27:02 +08:00
|
|
|
using osu.Game.Rulesets.Scoring;
|
2019-08-21 02:17:27 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Objects
|
|
|
|
{
|
|
|
|
public class SpinnerTick : OsuHitObject
|
|
|
|
{
|
2020-07-28 10:22:58 +08:00
|
|
|
public const int SCORE_PER_TICK = 10;
|
|
|
|
|
2019-08-21 02:17:27 +08:00
|
|
|
public override Judgement CreateJudgement() => new OsuSpinnerTickJudgement();
|
2019-09-07 22:27:02 +08:00
|
|
|
|
2019-10-14 05:38:45 +08:00
|
|
|
protected override HitWindows CreateHitWindows() => HitWindows.Empty;
|
2020-07-21 17:22:37 +08:00
|
|
|
|
|
|
|
public class OsuSpinnerTickJudgement : OsuJudgement
|
|
|
|
{
|
|
|
|
public override bool AffectsCombo => false;
|
|
|
|
|
2020-07-28 10:22:58 +08:00
|
|
|
protected override int NumericResultFor(HitResult result) => SCORE_PER_TICK;
|
2020-07-21 17:22:37 +08:00
|
|
|
|
2020-07-21 18:52:16 +08:00
|
|
|
protected override double HealthIncreaseFor(HitResult result) => result == MaxResult ? 0.6 * base.HealthIncreaseFor(result) : 0;
|
2020-07-21 17:22:37 +08:00
|
|
|
}
|
2019-08-21 02:17:27 +08:00
|
|
|
}
|
|
|
|
}
|