少年修仙传客户端代码仓库
client_linchunjie
2019-07-01 b326d95b31cf9f5004f2f9d1aff7ed97d50e4023
3335 草园采集添加防报错处理
1个文件已修改
33 ■■■■■ 已修改文件
System/HazyRegion/HazyGrassModel.cs 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/HazyRegion/HazyGrassModel.cs
@@ -224,24 +224,27 @@
                    var hintId = dungeonModel.GetDungeonHintId(config.dungeonId, config.lineId);
                    var hintConfig = DungeonHintConfig.Get(hintId);
                    if (hintConfig.NPC1ID.Length > 1
                        && Array.IndexOf(hintConfig.NPC1ID, npcId) != -1)
                    if (hintConfig != null)
                    {
                        collectCount = 0;
                        for (int i = 0; i < hintConfig.NPC1ID.Length; i++)
                        if (hintConfig.NPC1ID.Length > 1
                            && Array.IndexOf(hintConfig.NPC1ID, npcId) != -1)
                        {
                            collectCount += dungeonModel.GetDugneonNpcCollectCount(hintConfig.NPC1ID[i]);
                            collectCount = 0;
                            for (int i = 0; i < hintConfig.NPC1ID.Length; i++)
                            {
                                collectCount += dungeonModel.GetDugneonNpcCollectCount(hintConfig.NPC1ID[i]);
                            }
                            return collectCount < hintConfig.targetValue1[0];
                        }
                        return collectCount < hintConfig.targetValue1[0];
                    }
                    if (hintConfig.NPC1ID.Length > 0 && hintConfig.NPC1ID[0] == npcId)
                    {
                        return collectCount < hintConfig.targetValue1[0];
                    }
                    else if (hintConfig.NPC2ID.Length > 0 && hintConfig.NPC2ID[0] == npcId)
                    {
                        return collectCount < hintConfig.targetValue2[0];
                        if (hintConfig.NPC1ID.Length > 0 && hintConfig.NPC1ID[0] == npcId)
                        {
                            return collectCount < hintConfig.targetValue1[0];
                        }
                        else if (hintConfig.NPC2ID.Length > 0 && hintConfig.NPC2ID[0] == npcId)
                        {
                            return collectCount < hintConfig.targetValue2[0];
                        }
                    }
                }
            }