少年修仙传客户端代码仓库
client_Wu Xijin
2019-06-27 6854d35c614d1859b5669c3785381187c66011b8
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
1个文件已修改
23 ■■■■■ 已修改文件
System/HazyRegion/ClientHazyGrassStage.cs 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/HazyRegion/ClientHazyGrassStage.cs
@@ -122,6 +122,29 @@
        {
            s_CollectNpcs.Remove(_sid);
        }
        if (ClientDungeonStageUtility.clientMapId == HazyGrassModel.REIKI_CLIENTDATAMAP)
        {
            var dungeon = ClientDungeonStageUtility.dungeonInfo;
            var hintId = dungeonModel.GetDungeonHintId(dungeon.mapId, dungeon.lineId);
            var dungeonHintConfig = DungeonHintConfig.Get(hintId);
            if (dungeonHintConfig != null)
            {
                var collectCount = 0;
                for (int i = 0; i < dungeonHintConfig.NPC1ID.Length; i++)
                {
                    collectCount += dungeonModel.GetDugneonNpcCollectCount(dungeonHintConfig.NPC1ID[i]);
                }
                if (dungeonHintConfig.targetValue1.Length > 0
                    && dungeonHintConfig.targetValue1[0] > 0)
                {
                    if (collectCount < dungeonHintConfig.targetValue1[0] - 1)
                    {
                        TryGotoCloserNpc();
                    }
                }
            }
        }
    }
    void InitialPlayer()