少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-20 645b93691da699c4f9fb1b0909c922f4b05dbdf8
3018 【1.6】封魔坛假副本boss血条显示异常

(cherry picked from commit 06eaea3d27e5f5edf6be6095acc1cd6426cdc917)
(cherry picked from commit a3b0920f39ac61d85a1ca307f7c925d27c82de00)
3个文件已修改
28 ■■■■ 已修改文件
System/Dungeon/TargetBriefInfoWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FakeDungeon/FakeDemonJarDungeonStage.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FindPrecious/DemonJarBossLifeBarWin.cs 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TargetBriefInfoWin.cs
@@ -96,8 +96,8 @@
            {
                instanceId = _instanceId,
                npcId = _npcId,
                hp = boss.ActorInfo.RealHp,
                maxHp = boss.ActorInfo.RealMaxHp,
                hp = _hp,
                maxHp = _maxHp,
                level = boss.ActorInfo.LV
            };
        }
System/FakeDungeon/FakeDemonJarDungeonStage.cs
@@ -349,7 +349,7 @@
        if (_victimId == boss.ServerInstID)
        {
            TargetBriefInfo.OnRefreshBossLifeBar(_victimId, 0, 0, 0);
            TargetBriefInfo.OnRefreshBossLifeBar(_victimId, boss.NpcConfig.NPCID, (ulong)Random.Range(0, 1000), 1000);
        }
    }
System/FindPrecious/DemonJarBossLifeBarWin.cs
@@ -87,8 +87,22 @@
                {
                    CloseClick();
                }
            }
                RefreshBossLifeBar();
            if (TargetBriefInfo.bossInfo != bossInfo)
            {
                bossInfo = TargetBriefInfo.bossInfo;
                if (bossInfo.instanceId != 0)
                {
                    if (inited)
                    {
                        RefreshBossLifeBar();
                    }
                    else
                    {
                        InitBossLifeBar();
                    }
                }
            }
        }
@@ -98,7 +112,7 @@
        {
            if (inited)
            {
                UpdateServerRemainHp();
                UpdateServerRemainHP();
            }
            else
            {
@@ -112,7 +126,7 @@
        void InitBossLifeBar()
        {
            var config = NPCConfig.Get(TargetBriefInfo.bossInfo.npcId);
            if (config != null)
            if (config!=null)
            {
                m_BossLifeBar.gameObject.SetActive(true);
                currentHp = (long)(model.mission.remainHPPer * 0.000001d * BOSSHP_TOTAL);
@@ -121,7 +135,7 @@
            }
        }
        private void UpdateServerRemainHp()
        private void UpdateServerRemainHP()
        {
            currentHp = (long)(model.mission.remainHPPer * 0.000001d * BOSSHP_TOTAL);
        }