Kaynağa Gözat

田野调查引导 和 服装升级引导修改

huangxiaoyue 1 yıl önce
ebeveyn
işleme
b805edaa5b

+ 1 - 2
GameClient/Assets/Game/HotUpdate/Controller/GuideController.cs

@@ -57,7 +57,7 @@ namespace GFGGame
             if (cfg.special <= 0) return false;
             if (cfg.guideKey == ConstGuideId.SUIT_LIST_VIEW)
             {
-                return FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(ClothingListView).Name, false);
+                return FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(ClothingListView).Name, false) && SuitUtil.GetClothingFosterHasSuitId();
             }
             return false;
 
@@ -69,7 +69,6 @@ namespace GFGGame
             {
                 return false;
             }
-
             GuideCfg cfg = GuideCfgArray.Instance.GetCfg(guideKey);
             if (cfg == null || GuideDataManager.currentGuideId != 0 && GuideDataManager.currentGuideId != cfg.id) return false;
             bool isPass = InstanceZonesDataManager.CheckLevelPass(cfg.storyLevelId);

+ 13 - 0
GameClient/Assets/Game/HotUpdate/Utils/SuitUtil.cs

@@ -291,6 +291,19 @@ namespace GFGGame
             return result;
         }
 
+        //判断服装升级引导是否开启
+        public static bool GetClothingFosterHasSuitId()
+        {
+            SuitFosterListCfg[] dataArray = SuitFosterListCfgArray.Instance.dataArray;
+            foreach (SuitFosterListCfg suitCfg in dataArray)
+            {
+                if (DressUpMenuSuitDataManager.CheckHaveSuit(suitCfg.suitId))
+                    return true;
+            }
+
+            return false;
+        }
+
         public static List<int> GetSuitIdList(bool notGet, bool haveGot, int typeId, int sortIndex)
         {
 

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/InstanceZones/InstanceZonesUIView.cs

@@ -77,7 +77,8 @@ namespace GFGGame
         {
             if (GuideDataManager.IsGuideFinish(ConstGuideId.STUDIO_PORCELAIN) <= 0
                 || GuideDataManager.IsGuideFinish(ConstGuideId.STUDIO_PROPERTY) <= 0
-                || GuideDataManager.IsGuideFinish(ConstGuideId.STUDIO_FILING) <= 0)
+                || GuideDataManager.IsGuideFinish(ConstGuideId.STUDIO_FILING) <= 0
+                || GuideDataManager.IsGuideFinish(ConstGuideId.FIELD) <= 0)
             {
                 UpdateToCheckGuide(null);
             }