소스 검색

摘星增加概率提升

huangxiaoyue 1 년 전
부모
커밋
ed7e53d140
2개의 변경된 파일12개의 추가작업 그리고 5개의 파일을 삭제
  1. 7 3
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs
  2. 5 2
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

+ 7 - 3
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

@@ -180,11 +180,15 @@ namespace GFGGame
                 UpGiftBox(comBox);
             }
             else if (boxId == LuckyBoxDataManager.BOX_ID_2) { 
-                long endTime = TimeUtil.DateTimeToTimestamp("[2024][1][28][05:00]");
+                long endTime = TimeUtil.DateTimeToTimestamp("[2024][2][2][00:00]");
                 if (endTime < TimeHelper.ServerNow())
                     comBox.m_showActivityType.selectedIndex = 0;
-                else
+                else { 
                     comBox.m_showActivityType.selectedIndex = 2;
+                    long curTime = TimeHelper.ServerNow();
+                    if (endTime >= curTime)
+                        comBox.m_txtHasTime.text = "剩余时间: " + TimeUtil.FormattingTimeTo_DDHHmm(endTime - curTime);
+                }
             }
             else
                 comBox.m_showActivityType.selectedIndex = 0;
@@ -448,7 +452,7 @@ namespace GFGGame
             GObject textField = item.asCom.GetChild("txtHasTime");
             if (textField == null) return;
             long curTime = TimeHelper.ServerNow();
-            long endTime = TimeUtil.DateTimeToTimestamp("[2024][1][28][05:00]");
+            long endTime = TimeUtil.DateTimeToTimestamp("[2024][2][2][00:00]");
             if (endTime < curTime)
             {
                 Timers.inst.Remove(UpdateImitateTime);

+ 5 - 2
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -963,8 +963,11 @@ namespace GFGGame
 
         private void CheckProbabilityUp()
         {
-            int activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitTsy);
-            if (activityId > 0)
+            long curTime = TimeHelper.ServerNow();
+            long endTime = TimeUtil.DateTimeToTimestamp("[2024][2][2][00:00]");
+            //int activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitTsy);
+            //if (activityId > 0)
+            if (endTime >= curTime)
                 _ui.m_btnZhaiXing.m_ProbabilityUpType.selectedIndex = 1;
             else
                 _ui.m_btnZhaiXing.m_ProbabilityUpType.selectedIndex = 0;