From 17618f1ffc88fc87c78c27cae4dc8f8b3b026c0f Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 27 六月 2019 16:37:03 +0800
Subject: [PATCH] 7620 子 【2.0.100】【开发】灵草园采集完后立即前往下个采集点 / 【前端】灵草园采集完后立即前往下个采集点
---
System/HazyRegion/ClientHazyGrassStage.cs | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/System/HazyRegion/ClientHazyGrassStage.cs b/System/HazyRegion/ClientHazyGrassStage.cs
index 077b1c3..b6af9e5 100644
--- a/System/HazyRegion/ClientHazyGrassStage.cs
+++ b/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()
--
Gitblit v1.8.0