少年修仙传客户端代码仓库
client_linchunjie
2019-05-25 ea4db5554e0c28e42e53dca2fb4842a2969ede80
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
3个文件已修改
52 ■■■■■ 已修改文件
Fight/Actor/HeroBehaviour.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/ClientDropItemUtility.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/PersonalEnemy.cs 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Actor/HeroBehaviour.cs
@@ -749,6 +749,8 @@
                {
                    _b405.PosX = (ushort)(GA_Hero.recordServerPos.x + GA_Hero.MapOffset.x);
                    _b405.PosY = (ushort)(GA_Hero.recordServerPos.z + GA_Hero.MapOffset.z);
                    _b405.TagPosX = (ushort)(GA_Hero.recordServerPos.x + GA_Hero.MapOffset.x);
                    _b405.TagPosY = (ushort)(GA_Hero.recordServerPos.z + GA_Hero.MapOffset.z);
                }
                //        Debug.LogFormat("释放了技能: {0},当前位置: {1} 目标位置: {2}", _b405.SkillID, new Vector2(_b405.PosX, _b405.PosY), new Vector2(_b405.TagPosX, _b405.TagPosY));
Fight/ClientDropItemUtility.cs
@@ -136,7 +136,8 @@
        }
        RecordFakeDrop(itemID, Time.time);
        DropItem.DropFake(itemID, m_DropPos, CameraController.Instance.CameraObject, _time);
        var _item = DropItem.DropFake(itemID, m_DropPos, CameraController.Instance.CameraObject, _time);
        m_DropItemList.Add(_item);
    }
    public void Drop(Vector3 center, int[] itemIds)
Fight/GameActor/PersonalEnemy.cs
@@ -84,6 +84,53 @@
        GAMgr.Instance.Release(npc);
    }
    public static void Bind(H0406_tagNPCAppear h0406)
    {
        if (!BindInfoDict.ContainsKey(h0406.NPCID))
        {
            return;
        }
        if (BindInfoDict[h0406.NPCID].Count == 0)
        {
            BindInfoDict.Remove(h0406.NPCID);
            return;
        }
        var _bindInfo = BindInfoDict[h0406.NPCID][0];
        var _config = NPCConfig.Get((int)h0406.NPCID);
        GA_NpcClientFightNorm _npc = null;
        if (_config.IsBoss != (int)E_MonsterType.Normal
         && _config.IsBoss != (int)E_MonsterType.Elite)
        {
            _npc = GAMgr.Instance.ReqClntFightNpc<GA_NpcClientFightBoss>(_bindInfo.npcID, _bindInfo.g);
        }
        else
        {
            _npc = GAMgr.Instance.ReqClntFightNpc<GA_NpcClientFightNorm>(_bindInfo.npcID, _bindInfo.g);
        }
        if (_npc != null)
        {
            var _vaildPos = _bindInfo.pos;
            GActor.TryGetValidPos(_bindInfo.pos, ref _vaildPos);
            _npc.BornPos = _npc.Pos = _vaildPos;
            m_CBinSdDict[_npc.ServerInstID] = h0406.ObjID;
            m_SBindCDict[h0406.ObjID] = _npc.ServerInstID;
            _npc.ActorInfo.Hp = h0406.NPCHP;
            _npc.ActorInfo.HpEx = h0406.NPCHPEx;
            _npc.ActorInfo.MaxHp = h0406.MaxHP;
            _npc.ActorInfo.MaxHpEx = h0406.MaxHPEx;
            _npc.ActorInfo.moveSpeed = 500f / h0406.Speed;
            if (OnNpcAppear != null)
            {
                OnNpcAppear(_npc);
            }
        }
        BindInfoDict[h0406.NPCID].RemoveAt(0);
    }
    public static void Bind(H0408_tagPlayerSummonNPCAppear h0408)
    {
        if (!BindInfoDict.ContainsKey(h0408.NPCID))