少年修仙传客户端代码仓库
client_Hale
2019-05-23 d90d031f0dbc605ed89010d9e99ba6872a13f985
382 设置前端绑定木桩NPC血量
3个文件已修改
18 ■■■■■ 已修改文件
Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0408_tagPlayerSummonNPCAppear.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/PersonalEnemy.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/MapTransferUtility.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0408_tagPlayerSummonNPCAppear.cs
@@ -26,10 +26,13 @@
            return;
        }
        if (_npcConfig.NPCType == (int)E_NpcType.PersonalEnemy)
        if (vNetData.PlayerID == PlayerDatas.Instance.PlayerId)
        {
            PersonalEnemy.Bind(vNetData);
            return;
            if (_npcConfig.NPCType == (int)E_NpcType.PersonalEnemy)
            {
                PersonalEnemy.Bind(vNetData);
                return;
            }
        }
        if (_npcConfig.NPCType == (int)E_NpcType.Collect)
Fight/GameActor/PersonalEnemy.cs
@@ -11,9 +11,6 @@
        public E_ActorGroup g;
    }
    public H0408_tagPlayerSummonNPCAppear data;
    public uint bindClientNpcSID = 0;
    private static Dictionary<uint, PersonalEnemy> m_Map = new Dictionary<uint, PersonalEnemy>();
    public static Dictionary<uint, uint> m_CBinSdDict = new Dictionary<uint, uint>();
    public static Dictionary<uint, uint> m_SBindCDict = new Dictionary<uint, uint>();
@@ -95,6 +92,11 @@
            _npc.BornPos = _npc.Pos = _vaildPos;
            m_CBinSdDict[_npc.ServerInstID] = h0408.ObjID;
            m_SBindCDict[h0408.ObjID] = _npc.ServerInstID;
            _npc.ActorInfo.Hp = h0408.HP;
            _npc.ActorInfo.HpEx = h0408.HPEx;
            _npc.ActorInfo.MaxHp = h0408.MaxHP;
            _npc.ActorInfo.MaxHpEx = h0408.MaxHPEx;
            _npc.ActorInfo.moveSpeed = 500f / h0408.Speed;
            if (OnNpcAppear != null)
            {
                OnNpcAppear(_npc);
Fight/MapTransferUtility.cs
@@ -815,7 +815,6 @@
    private void MoveToExistNpc(int npcID, GActor npc)
    {
        GA_Hero _hero = PlayerDatas.Instance.hero;
        Debug.Log("11111111111111");
        NPCConfig _config = NPCConfig.Get(npcID);