cyzhao il y a 5 mois
Parent
commit
7324623102

+ 1 - 1
Gameserver/App/model/Const/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-01-03 14:56:02
+ // 日期: 2025-01-07 14:54:49
 ////////////////////
 
 /**

+ 1 - 1
Gameserver/App/model/Const/sm_evolve.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-31 10:51:57
+ // 日期: 2025-01-06 16:42:30
 ////////////////////
 
 

+ 6 - 1
Gameserver/App/model/Const/sm_gate.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-01-03 12:21:57
+ // 日期: 2025-01-07 14:54:32
 ////////////////////
 
 
@@ -210,5 +210,10 @@ class sm_gate
     */
     public $tz_reward3;
 
+    /**
+    * @var Int32 0:没有关卡预告 1:该关有预告 default(0) 
+    */
+    public $preview;
+
 }
 

+ 6 - 1
Gameserver/App/model/Const/sm_gate_unlock.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-01-03 12:21:57
+ // 日期: 2025-01-07 14:54:32
 ////////////////////
 
 
@@ -61,5 +61,10 @@ class sm_gate_unlock
     */
     public $tz_reward3;
 
+    /**
+    * @var Int32 0:没有关卡预告 1:该关有预告 default(0) 
+    */
+    public $preview;
+
 }
 

+ 1 - 1
Gameserver/App/model/Const/sm_glc2.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-01-03 10:54:49
+ // 日期: 2025-01-03 16:14:23
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_globalsettings.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-31 12:00:44
+ // 日期: 2025-01-06 10:33:25
 ////////////////////
 
 

+ 5 - 1
Gameserver/App/model/Const/sm_guide.php

@@ -14,7 +14,11 @@ class sm_guide
 {
 
     /**
-    * @var Int32 引导模块  
+    * @var Int32 1:启灵,坊市
+    *  2:装备
+    *  3:战斗引导,主动技能
+    *  4:战斗引导,被动技能
+    *  5:装备的升级,降品,套装属性说明  
     */
     public $id;
 

+ 1 - 1
Gameserver/App/model/Const/sm_item.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-31 15:21:57
+ // 日期: 2025-01-06 14:28:01
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_predicate.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-01-03 14:21:57
+ // 日期: 2025-01-07 14:55:55
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_skills.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-01-03 09:58:53
+ // 日期: 2025-01-06 11:21:58
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_waveItem.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-01-03 10:12:29
+ // 日期: 2025-01-07 14:12:20
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_waves.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-01-03 10:12:29
+ // 日期: 2025-01-07 14:12:20
 ////////////////////
 
 

+ 28 - 4
Gameserver/App/process/FightProc.php

@@ -638,6 +638,10 @@ class FightProc {
         if ($tag) {
             my_Assert(!in_array($mask, $gateInfo->FirstReward), ErrCode::gate_GatePriceHasReceive);
             $gateInfo->FirstReward[] = $mask;
+            if ($gateId == GameConfig::glc2()->guide_equipLevel_triggerGateId && $index == GameConfig::glc2()->guide_equipLevel_triggerGateBoxIndex) {
+                ctx()->privateData(true)->funUnlockRecord_3[] = 5;
+            }
+
             StoreProc::AddMultiItemInStore($prize);
         }
         ctx()->gates->GateList->$gateId = $gateInfo;
@@ -655,6 +659,7 @@ class FightProc {
             'reward_equip' => StoreProc::$reward_equip,
             'funUnlockRecord' => ctx()->privateState->funUnlockRecord,
             'funUnlockRecord_2' => ctx()->privateState->funUnlockRecord_2,
+            'funUnlockRecord_3' => ctx()->privateState->funUnlockRecord_3,
         );
         return Resp::ok($ret);
     }
@@ -876,13 +881,32 @@ class FightProc {
                     ctx()->privateData(true)->funUnlockRecord[] = $id;
                     ctx()->privateData(true)->funUnlockRecord_2[] = $id;
                     if ($id == 13 || $id == 16 || $id == 14) {
-                        ctx()->privateData(true)->funUnlockRecord_3[] = $id;
+                        ctx()->privateData(true)->funUnlockRecord_3[] = self::unlockGuideType($id);
                     }
                     self::SubFunDateInit_FunUnlock($id);
                 }
             }
         }
     }
+    
+    public static function unlockGuideType($id) {
+        $type = 0;
+        switch ($id) {
+            case 13://坊市
+                $type = 1;
+                break;
+            case 16://启灵
+                $type = 1;
+                break;
+            case 14://装备
+                $type = 2;
+                break;                     
+            default:
+                break;
+        }
+        
+        return $type;
+    }
 
     /**
      *  初次得到装备 功能解锁
@@ -906,7 +930,7 @@ class FightProc {
                 ctx()->privateData(true)->funUnlockRecord_2[] = $id;
 
                 if ($id == 13 || $id == 16 || $id == 14) {
-                    ctx()->privateData(true)->funUnlockRecord_3[] = $id;
+                    ctx()->privateData(true)->funUnlockRecord_3[] = self::unlockGuideType($id);
                 }
                 self::SubFunDateInit_FunUnlock($id);
             }
@@ -933,7 +957,7 @@ class FightProc {
                 ctx()->privateData(true)->funUnlockRecord[] = $id;
                 ctx()->privateData(true)->funUnlockRecord_2[] = $id;
                 if ($id == 13 || $id == 16 || $id == 14) {
-                    ctx()->privateData(true)->funUnlockRecord_3[] = $id;
+                    ctx()->privateData(true)->funUnlockRecord_3[] = self::unlockGuideType($id);
                 }
                 self::SubFunDateInit_FunUnlock($id);
             }
@@ -972,7 +996,7 @@ class FightProc {
                 ctx()->privateData(true)->funUnlockRecord[] = $id;
                 ctx()->privateData(true)->funUnlockRecord_2[] = $id;
                 if ($id == 13 || $id == 16 || $id == 14) {
-                    ctx()->privateData(true)->funUnlockRecord_3[] = $id;
+                    ctx()->privateData(true)->funUnlockRecord_3[] = self::unlockGuideType($id);
                 }
                 self::SubFunDateInit_FunUnlock($id);
             }

+ 5 - 3
Gameserver/App/process/UserProc.php

@@ -52,9 +52,11 @@ class UserProc {
     
     public static function clearGuideInfo(){
         list($id) = req()->paras;                                               # 参数:引导模块
-                                        
-        ctx()->privateState->funUnlockRecord_3 = array();
-               
+                                      
+        if(in_array($id,ctx()->privateState->funUnlockRecord_3)){
+            StlUtil::arrayRemove(ctx()->privateState->funUnlockRecord_3, $id); 
+        }
+                   
         UserProc::updateUserInfo();                                             # 回写数据
         return Resp::ok(array());
     }