少年修仙传客户端代码仓库
client_Hale
2018-12-21 163463f0a1d33050e48a80e52738d7455e99ba6b
5499 聚魂副本采集物相关逻辑修改
4个文件已修改
56 ■■■■■ 已修改文件
Fight/GameActor/GA_Hero.cs 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GA_NpcFightNorm.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GA_NpcFunc.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GActor.cs 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GA_Hero.cs
@@ -440,13 +440,21 @@
                    });
                    var _collect = _list[0] as GA_NpcCollect;
                    if (_collect != null)
                    {
                        if ((SelectTarget == null || SelectTarget is GA_NpcCollect) && SelectTarget != _collect)
                        var _dist = MathUtility.DistanceSqrtXZ(_collect.Pos, Pos);
                        if (_dist < 16)
                        {
                            SelectTarget = _collect;
                            _collect.Arrive();
                            if ((SelectTarget == null || SelectTarget is GA_NpcCollect) && SelectTarget != _collect)
                            {
                                SelectTarget = _collect;
                                _collect.Arrive();
                            }
                        }
                    }
                }
            }
Fight/GameActor/GA_NpcFightNorm.cs
@@ -57,7 +57,7 @@
        else
        {
            // 初始化坐标
            AdjustPos(_h0406.PosX, _h0406.PosY);
            AdjustPos(_h0406.PosX, _h0406.PosY,false);
        }
        GAStaticDefine.NPCLocation _npcLocation;
Fight/GameActor/GA_NpcFunc.cs
@@ -504,7 +504,11 @@
        GA_Hero _hero = PlayerDatas.Instance.hero;
        Vector3 _forward = MathUtility.ForwardXZ(Pos, _hero.Pos);
        _hero.Forward = _forward;
        if (NpcConfig.NPCID != GeneralDefine.GatherSoulDZ)
        {
            _hero.Forward = _forward;
        }
        if (NpcConfig.AutomaticFace == 1)
        {
Fight/GameActor/GActor.cs
@@ -32,9 +32,9 @@
            {
                m_Root.position = m_Pos;
            }
            //if (this is GA_Player)
            //if (this is GA_NpcFightNorm)
            //{
            //    Debug.Log("坐标改变....." + value);
            //    Debug.Log("坐标改变.....: " + value);
            //}
        }
    }
@@ -55,18 +55,20 @@
                    m_Root.rotation = m_Rotation;
                }
                // if (ServerInstID == PlayerDatas.Instance.PlayerId)
                // {
                //     System.Diagnostics.StackTrace st = new System.Diagnostics.StackTrace();
                //     System.Diagnostics.StackFrame[] sfs = st.GetFrames();
                //     string _content = "";
                //     for (int u = 0; u < sfs.Length; ++u)
                //     {
                //         System.Reflection.MethodBase mb = sfs[u].GetMethod();
                //         _content += string.Format("[CALL STACK][{0}]: {1}.{2}\r\n", u, mb.DeclaringType.FullName, mb.Name);
                //     }
                //     Debug.Log(_content);
                // }
                if (ServerInstID == PlayerDatas.Instance.PlayerId)
                {
                    //System.Diagnostics.StackTrace st = new System.Diagnostics.StackTrace();
                    //System.Diagnostics.StackFrame[] sfs = st.GetFrames();
                    //string _content = "";
                    //for (int u = 0; u < sfs.Length; ++u)
                    //{
                    //    System.Reflection.MethodBase mb = sfs[u].GetMethod();
                    //    _content += string.Format("[CALL STACK][{0}]: {1}.{2}\r\n", u, mb.DeclaringType.FullName, mb.Name);
                    //}
                    //Debug.Log(_content);
                //Debug.Log("转向了.......: " + m_Forward);
                }
            }
        }
    }
@@ -624,13 +626,11 @@
    /// <param name="sPosY">服务端坐标Y</param>
    public void AdjustPos(ushort sPosX, ushort sPosY, bool chkNavmesh = true)
    {
        //Debug.LogFormat("sPosX: {0} - MapOffsetX: {1} = {2}", sPosX, GA_Hero.MapOffset.x, sPosX - (ushort)GA_Hero.MapOffset.x);
        //Debug.LogFormat("sPosY: {0} - MapOffsetY: {1} = {2}", sPosY, GA_Hero.MapOffset.z, sPosY - (ushort)GA_Hero.MapOffset.z);
        sPosX -= (ushort)GA_Hero.MapOffset.x;
        sPosY -= (ushort)GA_Hero.MapOffset.z;
        Vector3 _clntPos = new Vector3(sPosX * .5f, 0, sPosY * .5f);
        Vector3 _adjustPos = Vector3.zero;
        if (!chkNavmesh)