Пример #1
0
    void ActiveUltDef(Blessing _input)
    {
        if (pStats.stamina >= 10)
        {
            if (((Input.GetButtonDown("Skill_Use_Left") || SwipeControls.SwipeUp) && blessing_inven[0].GetBlessingType() == _input.GetBlessingType() && _input.GetDuration() <= 0) ||
                ((Input.GetButtonDown("Skill_Use_Right") || SwipeControls.SwipeDown) && blessing_inven[1].GetBlessingType() == _input.GetBlessingType() && _input.GetDuration() <= 0))
            {
                pStats.stamina -= 10;
                _input.SetDuration(3);

                PlayerAudio.Ult();
                sm.SetNextState("UltDef");
            }
        }

        if (_input.GetDuration() > 0)
        {
            pStats.passiveDefMultiplyer += 100;
        }
    }
Пример #2
0
    void ActiveWarCry(Blessing _input)
    {
        if (pStats.stamina >= 5)
        {
            if (((Input.GetButtonDown("Skill_Use_Left") || SwipeControls.SwipeUp) && blessing_inven[0].GetBlessingType() == _input.GetBlessingType() && _input.GetDuration() <= 0) ||
                ((Input.GetButtonDown("Skill_Use_Right") || SwipeControls.SwipeDown) && blessing_inven[1].GetBlessingType() == _input.GetBlessingType() && _input.GetDuration() <= 0))
            {
                pStats.stamina -= 5;
                _input.SetDuration(10);

                PlayerAudio.Roar();
                sm.SetNextState("WarCry");
            }
        }

        if (_input.GetDuration() > 0)
        {
            pStats.passiveDmgMultiplyer += 30;
            pStats.passiveDefMultiplyer += 40;
        }
    }