少年修仙传客户端代码仓库
client_linchunjie
2018-09-26 703337574c8d4d4e852ea90c778e3aff3523ce12
System/WorldMap/MapModel.cs
@@ -584,33 +584,36 @@
            foreach (var config in mapNpcConfigs)
            {
                var mapId = config.MapID;
                if (config.NPCType == (int)E_NpcType.Func)
                if (config.NPCID != 0)
                {
                    List<string> npcRefreshIs;
                    if (!mapFunctionNPCsToRefreshID.ContainsKey(mapId))
                    if (config.NPCType == (int)E_NpcType.Func)
                    {
                        mapFunctionNPCsToRefreshID[mapId] = npcRefreshIs = new List<string>();
                    }
                    else
                    {
                        npcRefreshIs = mapFunctionNPCsToRefreshID[mapId];
                    }
                        List<string> npcRefreshIs;
                        if (!mapFunctionNPCsToRefreshID.ContainsKey(mapId))
                        {
                            mapFunctionNPCsToRefreshID[mapId] = npcRefreshIs = new List<string>();
                        }
                        else
                        {
                            npcRefreshIs = mapFunctionNPCsToRefreshID[mapId];
                        }
                    npcRefreshIs.Add(config.RefreshID.ToString());
                }
                else if (config.NPCType == (int)E_NpcType.Flag)
                {
                    List<string> npcRefreshIs;
                    if (!mapCollectNPCsToRefreshID.ContainsKey(mapId))
                    {
                        mapCollectNPCsToRefreshID[mapId] = npcRefreshIs = new List<string>();
                        npcRefreshIs.Add(config.RefreshID.ToString());
                    }
                    else
                    else if (config.NPCType == (int)E_NpcType.Flag)
                    {
                        npcRefreshIs = mapCollectNPCsToRefreshID[mapId];
                    }
                        List<string> npcRefreshIs;
                        if (!mapCollectNPCsToRefreshID.ContainsKey(mapId))
                        {
                            mapCollectNPCsToRefreshID[mapId] = npcRefreshIs = new List<string>();
                        }
                        else
                        {
                            npcRefreshIs = mapCollectNPCsToRefreshID[mapId];
                        }
                    npcRefreshIs.Add(config.RefreshID.ToString());
                        npcRefreshIs.Add(config.RefreshID.ToString());
                    }
                }
            }