少年修仙传客户端代码仓库
client_Hale
2019-06-22 76491182fa7d3aae42af31207f8b6bfef8802490
382 技能效果值逻辑修改
1个文件已修改
52 ■■■■■ 已修改文件
Fight/Actor/Skill/AttackHandler.cs 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Actor/Skill/AttackHandler.cs
@@ -771,14 +771,20 @@
                        _superHitAdd += _effectValue.value1;
                    }
                }
                if (_exceptSkill.effectValue.TryGetValue(4030, out _effectValue))
                {
                    _superHit += _effectValue.value1;
                }
                if (_exceptSkill.effectValue.TryGetValue(4075, out _effectValue))
                {
                    float _val = (PlayerDatas.Instance.extersion.battleValEx1 - 10000) * _effectValue.value1;
                    _superHitAdd += _val;
                }
            }
            if (attacker.SkillMgr.TryGetPassiveEffectValue(4075, out _effectValue, out _skillInfo))
            {
                float _val = (PlayerDatas.Instance.extersion.battleValEx1 - 10000) * _effectValue.value1;
                _superHitAdd += _val;
            }
            #endregion
        }
@@ -1011,8 +1017,21 @@
                                             ref int _aDamagePVE,
                                             bool _isCrit)
    {
        SkillHelper.EffectValue _effectValue;
        SkillHelper.SkillInfo _skillInfo;
        SkillHelper.SkillInfo _exceptSkill = null;
        if (attacker is GA_Hero)
        {
            int _exceptSkillId = 0;
            if (TsSkillModel.TryGetExpertSkill(skillInfo.config.SkillID, out _exceptSkillId))
            {
                _exceptSkill = SkillHelper.Instance.Get(_exceptSkillId);
            }
        }
        #region 伤害增加
@@ -1038,12 +1057,12 @@
        if (attacker is GA_Hero)
        {
            if (attacker.SkillMgr.TryGetPassiveEffectValue(4102, out _effectValue, out _skillInfo))
            if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4102, out _effectValue))
            {
                int _val = _effectValue.value1;
                int _needCount = _effectValue.value2;
                bool _valid = true;
                if (attacker.SkillMgr.TryGetPassiveEffectValue(4092, out _effectValue, out _skillInfo))
                if (_exceptSkill.effectValue.TryGetValue(4092, out _effectValue))
                {
                    if (_effectValue.value2 == 0)
                    {
@@ -1070,7 +1089,7 @@
                }
            }
            if (attacker.SkillMgr.TryGetPassiveEffectValue(4086, out _effectValue, out _skillInfo))
            if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4086, out _effectValue))
            {
                bool _vaild = true;
                if (_effectValue.value3 == 1)
@@ -1090,7 +1109,7 @@
                }
            }
            if (attacker.SkillMgr.TryGetPassiveEffectValue(4087, out _effectValue, out _skillInfo))
            if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4087, out _effectValue))
            {
                if (PlayerDatas.Instance.baseData.yinjiCount > _effectValue.value2)
                {
@@ -1098,12 +1117,12 @@
                }
            }
            if (attacker.SkillMgr.TryGetPassiveEffectValue(4088, out _effectValue, out _skillInfo))
            if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4088, out _effectValue))
            {
                int _per = _effectValue.value1;
                int _needCount = _effectValue.value2;
                bool _valid = true;
                if (attacker.SkillMgr.TryGetPassiveEffectValue(4092, out _effectValue, out _skillInfo))
                if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4092, out _effectValue))
                {
                    if (_effectValue.value2 == 0)
                    {
@@ -1126,11 +1145,10 @@
                    _needCount = PlayerDatas.Instance.baseData.yinjiCount > _needCount ?
                                 _needCount : PlayerDatas.Instance.baseData.yinjiCount;
                    _aAtkSkillPer += _per * _needCount;
                    Debug.LogFormat("11111111111111111111");
                }
            }
            if (attacker.SkillMgr.TryGetPassiveEffectValue(4015, out _effectValue, out _skillInfo))
            if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4015, out _effectValue))
            {
                if (target.ActorInfo.status4012.ContainsKey((byte)_effectValue.value2))
                {
@@ -1163,7 +1181,7 @@
                }
            }
            if (attacker.SkillMgr.TryGetPassiveEffectValue(4098, out _effectValue, out _skillInfo))
            if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4098, out _effectValue))
            {
                var _skillInfo1 = SkillHelper.Instance.Get(_effectValue.value2);
                if (_skillInfo1 != null)
@@ -1182,7 +1200,7 @@
                }
            }
            if (attacker.SkillMgr.TryGetPassiveEffectValue(4096, out _effectValue, out _skillInfo))
            if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4096, out _effectValue))
            {
                if (StatusMgr.Instance.IsExist(target.ServerInstID, _effectValue.value3))
                {
@@ -1193,7 +1211,7 @@
        }
        // 4005 概率增加攻击(技能)伤害万分率
        if (attacker.SkillMgr.TryGetPassiveEffectValue(4005, out _effectValue, out _skillInfo))
        if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4005, out _effectValue))
        {
            if (Random.Range(0, 10000) < _effectValue.value2)
            {
@@ -1208,7 +1226,7 @@
        }
        // 4035 增加技能伤害万分率
        if (attacker.SkillMgr.TryGetPassiveEffectValue(4035, out _effectValue, out _skillInfo))
        if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4035, out _effectValue))
        {
            bool _isValid = true;
            var _mapConfig = MapConfig.Get(PlayerDatas.Instance.baseData.MapID);