浏览代码

修改道友事件触发

lzx 18 小时之前
父节点
当前提交
a6bc64de1b

+ 10 - 0
Assets/Res/Config/DaoyouModelConfig.json

@@ -34,6 +34,7 @@
         1
       ],
       "EmotionLvforQuest": 2,
+      "EventCompleteforQuest": 1,
       "QuestID": 9003,
       "EmotionLvforspecialGift": [
         3
@@ -79,6 +80,7 @@
         2
       ],
       "EmotionLvforQuest": 2,
+      "EventCompleteforQuest": 1,
       "QuestID": 9002,
       "EmotionLvforspecialGift": [
         4
@@ -124,6 +126,7 @@
         3
       ],
       "EmotionLvforQuest": 2,
+      "EventCompleteforQuest": 1,
       "QuestID": 9001,
       "EmotionLvforspecialGift": [
         5
@@ -169,6 +172,7 @@
         4
       ],
       "EmotionLvforQuest": 3,
+      "EventCompleteforQuest": 1,
       "QuestID": 9002,
       "EmotionLvforspecialGift": [
         4
@@ -214,6 +218,7 @@
         5
       ],
       "EmotionLvforQuest": 3,
+      "EventCompleteforQuest": 1,
       "QuestID": 9001,
       "EmotionLvforspecialGift": [
         5
@@ -259,6 +264,7 @@
         6
       ],
       "EmotionLvforQuest": 3,
+      "EventCompleteforQuest": 1,
       "QuestID": 9002,
       "EmotionLvforspecialGift": [
         6
@@ -304,6 +310,7 @@
         7
       ],
       "EmotionLvforQuest": 4,
+      "EventCompleteforQuest": 1,
       "QuestID": 9001,
       "EmotionLvforspecialGift": [
         5
@@ -349,6 +356,7 @@
         8
       ],
       "EmotionLvforQuest": 4,
+      "EventCompleteforQuest": 1,
       "QuestID": 9002,
       "EmotionLvforspecialGift": [
         6
@@ -394,6 +402,7 @@
         1
       ],
       "EmotionLvforQuest": 5,
+      "EventCompleteforQuest": 1,
       "QuestID": 9001,
       "EmotionLvforspecialGift": [
         7
@@ -439,6 +448,7 @@
         2
       ],
       "EmotionLvforQuest": 6,
+      "EventCompleteforQuest": 1,
       "QuestID": 9002,
       "EmotionLvforspecialGift": [
         8

+ 10 - 0
Assets/Scripts/GameData/ExcelConfig/DaoyouModelConfig.cs

@@ -144,6 +144,16 @@ namespace Excel2Json
 #endif
 		
 
+		/// <summary>
+		///触发道侣任务必须完成的事件id
+		/// </summary>
+#if !COMBAT_SERVER
+		public int EventCompleteforQuest;
+#else
+		public int EventCompleteforQuest{ set; get; }
+#endif
+		
+
 		/// <summary>
 		///道侣任务ID
 		/// </summary>

+ 1 - 0
Assets/Scripts/GameUI/UI/DaoYouPanel/DaoYouInfoPanel.cs

@@ -89,6 +89,7 @@ namespace Fort23.Mono
             {
                 if (daoYouData.favorabilityLv >= _daoyouModelConfig.EmotionLvforQuest
                     && !EventSystemManager.Instance.BagIsEvent(_daoyouModelConfig.QuestID)
+                    && EventSystemManager.Instance.BagIsEvent(_daoyouModelConfig.EventCompleteforQuest)
                     && !EventSystemManager.Instance.IsEventTrigger(_daoyouModelConfig.QuestID))
                 {
                     AccountFileInfo.EventList eventList = EventSystemManager.Instance.AddEvent(_daoyouModelConfig.QuestID);

+ 1 - 0
Assets/Scripts/GameUI/UI/DaoYouPanel/DaoYouWidget.cs

@@ -68,6 +68,7 @@ namespace Fort23.Mono
                 DaoyouLevelupConfig daoyouLevelupConfig = ConfigComponent.Instance.Get<DaoyouLevelupConfig>(_daoYouData.favorabilityLv);
                 Text_DaoyouLvName.text = LanguageManager.Instance.Text(daoyouLevelupConfig.name);
                 if (_daoYouData.favorabilityLv >= _daoyouModelConfig.EmotionLvforQuest
+                    && EventSystemManager.Instance.BagIsEvent(_daoyouModelConfig.EventCompleteforQuest)
                     && !EventSystemManager.Instance.BagIsEvent(_daoyouModelConfig.QuestID)
                     && !EventSystemManager.Instance.IsEventTrigger(_daoyouModelConfig.QuestID))
                 {

二进制
Excel2Json/Excel/DaoyouConfig.xlsx