| | |
| | | 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];
|
| | | }
|
| | | } |
| | | }
|
| | | }
|