少年修仙传客户端代码仓库
hch
2019-10-30 d561c564c67609bbbe7684a4c24832779e49fcca
0312 boss定位报错问题
2个文件已修改
26 ■■■■■ 已修改文件
System/OpenServerActivity/BossFirstBloodModel.cs 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/BossFirstBloodWin.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/BossFirstBloodModel.cs
@@ -63,17 +63,23 @@
            }
        }
        public int GetFirstNPCRedPoint()
        public Int2 GetFirstNPCRedPoint()
        {
            Int2 npcinfo = Int2.zero;
            int i = 0;
            foreach (var key in npcIDConfig)
            {
                var _redpoint = m_Redpoints[int.Parse(key)];
                var npcID = int.Parse(key);
                var _redpoint = m_Redpoints[npcID];
                if (_redpoint.state != RedPointState.None)
                    return i;
                {
                    npcinfo.x = i;
                    npcinfo.y = npcID;
                    return npcinfo;
                }
                i++;
            }
            return 0;
            return npcinfo;
        }
        public void UpdateAllRedPoint()
System/OpenServerActivity/BossFirstBloodWin.cs
@@ -357,11 +357,15 @@
            m_BossCtrl.m_Scorller.RefreshActiveCellViews();
        }
        public void JumpNpcByIndex(int index)
        public void JumpNpcByIndex(Int2 npcInfo)
        {
            m_BossCtrl.JumpIndex(index);
            CellView cell = m_BossCtrl.GetActiveCellView(index);
            int npcID = cell.info.Value.infoInt1;
            int index = npcInfo.x;
            int npcID = npcInfo.y;
            m_BossCtrl.JumpIndex(npcInfo.x);
            CellView cell = m_BossCtrl.GetActiveCellView(index);
            if (cell != null)
                // 此处取的是显示的index,npcindex比这个大取到是空的
                npcID = cell.info.Value.infoInt1;
            OnBossIconClick(npcID, index);
        }