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; } }
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; } }
void ActiveSmite(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; for (int i = 0; i < 3; ++i) { GameObject obj = SpawnerManager.Instance.GetSkillEntityObjectFromPool("firebomb"); obj.GetComponent <SkillFireBomb>().SetParent(gameObject.GetInstanceID()); obj.transform.position = new Vector3(transform.position.x + (new IntRange(-2, 2).Random), 1f, transform.position.z + (new IntRange(-2, 2).Random)); } sm.SetNextState("Smite"); } } }