Exemplo n.º 1
0
    public void HpUp(int i = 0)//血量技能
    {
        switch (i)
        {
        case 1:
            SkillAnimator.Instance.AllroleSkill(1);
            role.HpUp((int)(role.MagAttack * 1f * (nor.heart)) + role.Level * 20); //根据数量恢复生命
            stateMgr.randomHuifu(Random.Range(2, 4));                              //清除Debuff
            break;

        case 2:
            SkillAnimator.Instance.AllroleSkill(1);
            role.HpUp((int)(role.MagAttack * 1.4f * (nor.heart)) + role.Level * 50); //根据数量恢复生命,死亡时复活
            stateMgr.randomHuifu(5);                                                 //清除Debuff
            break;

        default:
            SkillAnimator.Instance.AllroleSkill(8);
            role.HpUp((int)(role.MagAttack * 0.8f * (nor.heart)) + role.Level * 10);    //根据数量恢复生命
            break;
        }
    }