| | |
| | | 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());
|
| | | }
|
| | | }
|
| | | }
|
| | |
|