Exemple #1
0
        internal override void OnIncreaseScoreHit(IncreaseScoreType ist, double hpIncrease, HitObject h)
        {
            if (h == specialMovementNextFruit)
            {
                ResetMovementSpeed();
                specialMovementNextFruit = null;
            }

            if (ist == IncreaseScoreType.FruitTickTiny || hpIncrease <= 0)
            {
                return;
            }

            ResetMovementSpeed();

            //applies hyperdash
            checkDistanceToNextFruit(h as HitCircleFruits);

            WiimoteManager.Rumble(Player.KiaiActive ? 64 : 32);

            HpBar.KiBulge();

            if (HpBar.CurrentHp > 180)
            {
                HpBar.KiExplode();
            }
        }