少年修仙传客户端代码仓库
client_linchunjie
2019-06-24 9aaa150a709edc4fc4887504b80fe2bd47881553
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
2个文件已修改
12 ■■■■■ 已修改文件
Fight/Actor/AI/AI_BossFMT.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GActorNpcFight.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Actor/AI/AI_BossFMT.cs
@@ -75,6 +75,13 @@
                                      0,
                                      ref hurtValue, ref attackType);
        if (ClientDungeonStageUtility.isClientDungeon)
        {
            // hurtValue = int(dMaxHP*0.01*(1+atkSkillPer/10000.0))
            hurtValue = (uint)Mathf.Ceil(PlayerDatas.Instance.extersion.MaxHP * .01f * (1 + m_Owner.NpcConfig.PoisionAtk * Constants.F_DELTA));
        }
        AttackHandler.HurtObjs _hurtObject = new AttackHandler.HurtObjs
        {
            AttackType = attackType,
Fight/GameActor/GActorNpcFight.cs
@@ -768,6 +768,11 @@
                byte attackType = 0;
                AttackHandler.CalculateDamage(this, PlayerDatas.Instance.hero, _skill, 0, ref hurtValue, ref attackType);
                if (ClientDungeonStageUtility.isClientDungeon)
                {
                    // hurtValue = int(dMaxHP*0.01*(1+atkSkillPer/10000.0))
                    hurtValue = (uint)Mathf.Ceil(PlayerDatas.Instance.extersion.MaxHP * .01f * (1 + NpcConfig.PoisionAtk * Constants.F_DELTA));
                }
                if (PlayerDatas.Instance.hero.ActorInfo.Hp - hurtValue < 0)
                {
                    hurtValue = (uint)PlayerDatas.Instance.hero.ActorInfo.Hp;