Forráskód Böngészése

宠物探索重置派遣宠物

cyzhao 1 hónapja
szülő
commit
214dff06d6

+ 5 - 0
Gameserver/App/base/CmdCode.php

@@ -451,6 +451,11 @@ class CmdCode {
      * 6437 点击派遣按钮
      */
     const store_pet_dispatchPet = 6437;
+    
+    /**
+     * 6438 某区域的派遣宠物信息
+     */
+    const store_pet_resetDispatchPet = 6438;
 // </editor-fold>
 // <editor-fold defaultstate="collapsed" desc="商城操作码 - 65xx">
 

+ 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-04-09 15:03:54
+ // 日期: 2025-04-15 08:40:40
 ////////////////////
 
 /**

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

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

+ 5 - 3
Gameserver/App/model/Const/sm_gate.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-04-09 11:56:03
+ // 日期: 2025-04-14 17:29:12
 ////////////////////
 
 
@@ -37,9 +37,11 @@ class sm_gate
     public $weather;
 
     /**
-    * @var Int32 【废弃2024.7.23】关卡难度:主线难度:1,挑战难度:1,2,3...  
+    * @var String 用于存储关卡事件: (事件id:参数1,参数2...
+    *      /// 事件id:参数1,...)
+    *  1,全局刷新经验(1:开始延迟时间s,刷新间隔s,数量,ID,数量,ID,数量,ID)  
     */
-    public $gateDifficult;
+    public $gateEvents;
 
     /**
     * @var Int32 关卡序号  

+ 8 - 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-04-09 11:56:03
+ // 日期: 2025-04-14 17:29:12
 ////////////////////
 
 
@@ -31,6 +31,13 @@ class sm_gate_unlock
     */
     public $weather;
 
+    /**
+    * @var String 用于存储关卡事件: (事件id:参数1,参数2...
+    *      /// 事件id:参数1,...)
+    *  1,全局刷新经验(1:开始延迟时间s,刷新间隔s,数量,ID,数量,ID,数量,ID)  
+    */
+    public $gateEvents;
+
     /**
     * @var String 主线挑战: 难度1-词条列表(逗号分隔)  
     */

+ 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 
- // 日期: 2025-03-26 17:30:56
+ // 日期: 2025-04-14 18:03:14
 ////////////////////
 
 

+ 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-04-09 14:20:52
+ // 日期: 2025-04-10 14:12:07
 ////////////////////
 
 

+ 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-03-28 17:36:10
+ // 日期: 2025-04-10 11:52:02
 ////////////////////
 
 

+ 6 - 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-04-08 10:20:57
+ // 日期: 2025-04-11 11:34:31
 ////////////////////
 
 
@@ -130,5 +130,10 @@ class sm_waveItem
     */
     public $plots;
 
+    /**
+    * @var Int32 达到当前波次的最小时长(单位:秒)(用于作弊校验) default(300) 
+    */
+    public $minTs;
+
 }
 

+ 6 - 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-04-08 10:20:57
+ // 日期: 2025-04-11 11:34:31
 ////////////////////
 
 
@@ -130,5 +130,10 @@ class sm_waves
     */
     public $plots;
 
+    /**
+    * @var Int32 达到当前波次的最小时长(单位:秒)(用于作弊校验) default(300) 
+    */
+    public $minTs;
+
 }
 

+ 16 - 1
Gameserver/App/process/PetProc.php

@@ -189,7 +189,7 @@ class PetProc {
     }
 
     /**
-     * 派遣宠物
+     * 6437 点击派遣宠物
      * @return Resp
      */
     public static function DispatchPet() {
@@ -228,6 +228,21 @@ class PetProc {
         ));
     }
 
+    /**
+     * 6438 某区域的派遣宠物信息
+     * @return Resp
+     */
+    public static function ResetDispatchPet() {
+        list($areaId) = req()->paras;
+        
+        $ins_ExploreArea = new Ins_ExploreArea(ctx()->store->exploreArea->$areaId);
+        
+        UserProc::updateUserInfo();
+        return Resp::ok(array(
+                    'explorePetList' =>$ins_ExploreArea->explorePetList,
+        ));
+    }
+    
     /**
      * 6435 删除全部派遣宠物
      */

+ 2 - 0
Gameserver/App/process/StoreProc.php

@@ -95,6 +95,8 @@ class StoreProc {
                 return PetProc::Pet_ReceiveReward();    
             case CmdCode::store_pet_dispatchPet:                                # 6437 点击派遣宠物
                 return PetProc::DispatchPet();
+            case CmdCode::store_pet_resetDispatchPet:                           # 6438 某区域的派遣宠物信息    
+                return PetProc::ResetDispatchPet();
             default:
                 Err(ErrCode::cmd_err);
         }