Browse Source

招财进宝活动次数

zhangyuqian 1 year ago
parent
commit
9edb1f9834

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Data/InstanceZonesDataManager.cs

@@ -390,6 +390,12 @@ namespace GFGGame
                 var limitData = RoleLimitDataManager.GetLimitData(studioCfg.limit);
                 var limitData = RoleLimitDataManager.GetLimitData(studioCfg.limit);
                 times = Math.Min(times, limitData.TotalPlayMax - limitData.PlayTimes);
                 times = Math.Min(times, limitData.TotalPlayMax - limitData.PlayTimes);
             }
             }
+            else if(type == ConstInstanceZonesType.PureFight && subType == 1)
+            {
+                var zcjbFightCfg = ActivityFightCfgArray.Instance.GetCfg(levelCfg.chapterId);
+                var limitData = RoleLimitDataManager.GetLimitData(zcjbFightCfg.limit);
+                times = Math.Min(times, 10);
+            }
             title = string.Format("挑战{0}次", NumberUtil.GetChiniseNumberText(times));
             title = string.Format("挑战{0}次", NumberUtil.GetChiniseNumberText(times));
         }
         }
         public static void GetTotalProgress(out int count, out int totalCount)
         public static void GetTotalProgress(out int count, out int totalCount)

+ 0 - 1
GameClient/Assets/Game/HotUpdate/Views/ActivityMainTips/ZCJBBuyTipsView.cs

@@ -61,7 +61,6 @@ namespace GFGGame
         private void OnClickBtnSure()
         private void OnClickBtnSure()
         {
         {
             RoleLimitSProxy.ReqBuyLimitPlayTimes(500, 1, 1).Coroutine();
             RoleLimitSProxy.ReqBuyLimitPlayTimes(500, 1, 1).Coroutine();
-            EventAgent.DispatchEvent(ConstMessage.NUMERIC_CHANGE);
         }
         }
         private void LimitChanged(EventContext context = null)
         private void LimitChanged(EventContext context = null)
         {
         {

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLevelInfoView.cs

@@ -55,6 +55,7 @@ namespace GFGGame
         {
         {
             base.AddEventListener();
             base.AddEventListener();
             EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, UpdateBtnFightTimes);
             EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, UpdateBtnFightTimes);
+            EventAgent.AddEventListener(ConstMessage.NOTICE_LIMIT_CHANGED, UpdateBtnFightTimes);
         }
         }
         protected override void OnShown()
         protected override void OnShown()
         {
         {
@@ -83,6 +84,7 @@ namespace GFGGame
             base.RemoveEventListener();
             base.RemoveEventListener();
             EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, UpdateBtnFightTimes);
             EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, UpdateBtnFightTimes);
             EventAgent.RemoveEventListener(ConstMessage.NOTICE_LIMIT_CHANGED, UpdateVisitNum);
             EventAgent.RemoveEventListener(ConstMessage.NOTICE_LIMIT_CHANGED, UpdateVisitNum);
+            EventAgent.RemoveEventListener(ConstMessage.NOTICE_LIMIT_CHANGED, UpdateBtnFightTimes);
         }
         }
         private void OnClickBtnStart()
         private void OnClickBtnStart()
         {
         {