Beispiel #1
0
 /// <summary>
 /// 获取满怒气
 /// </summary>
 protected override int GetFullAnger()
 {
     if (Gstatus != null)
     {
         return(ConfigM.GetAngerK(1) + Gstatus.GetAttrData(EffectType.Anger));
     }
     return(ConfigM.GetAngerK(1));
 }
Beispiel #2
0
    /// <summary>
    /// 获取闪避调整系数
    /// </summary>
    protected override int GetDodgeRatio()
    {
        int ret = m_DodgeRatio;

        if (Gstatus != null)
        {
            ret += Gstatus.GetAttrData(EffectType.Hit) / MapGrid.m_Pixel;
        }
        return(ret);
    }
Beispiel #3
0
    /// <summary>
    /// 获取攻击速度
    /// </summary>
    protected override float GetAttackSpeed()
    {
        float speed = 1f;

        if (Gstatus != null)
        {
            speed = (1 + Gstatus.GetAttrData(EffectType.AttackTime) * 0.01f);
        }
        return(speed < 0.1f?0.1f:speed);
    }
Beispiel #4
0
    /// <summary>
    /// 获取移动速度
    /// </summary>
    protected override float GetSpeedercent()
    {
        float speed = 1f;

        if (Gstatus != null)
        {
            speed = (1 + Gstatus.GetAttrData(EffectType.MoveSpeed) * 0.01f);
        }
        return(speed < 0.1f?0.1f:speed);
    }
Beispiel #5
0
    /// <summary>
    /// 合成属性数据
    /// </summary>
    public override int GetAttrData(EffectType Type)
    {
        int ret = GetBaseAttrData(Type);

        if (Gstatus != null && Type != EffectType.RecoHp && Type != EffectType.RecoAnger)
        {
            ret += Gstatus.GetAttrData(Type);
        }

        return(ret);
    }
Beispiel #6
0
    /// <summary>
    /// 合成属性数据
    /// </summary>
    public override int GetAttrData(EffectType Type)
    {
        int ret = GetBaseAttrData(Type);

        if (Gstatus != null && Type != EffectType.RecoHp && Type != EffectType.RecoAnger)
        {
            ret += Gstatus.GetAttrData(Type);
        }

        List <Life> lifeList = new List <Life>();

        /*  Life skillTarget = m_Parent.m_Skill.PropSkillInfo.m_target;*/
        //LifeMCamp camp = skillTarget.m_Core.m_Camp;
        //遍历同一阵营
        CM.SearchLifeMListInBoat(ref lifeList, LifeMType.SOLDIER | LifeMType.SUMMONPET, LifeMCamp.ALL);
        foreach (Life life in lifeList)
        {
            ret += life.m_Skill.GetAuraAffector(Type, m_Parent, Camp);
        }
        return(ret);
    }