Parcourir la source

修改gateid格栅.

wanggangzero il y a 5 mois
Parent
commit
13bdd1dc63

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-27 14:45:32
+ // 日期: 2024-12-31 14:17:52
 ////////////////////
 
 /**

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-26 15:25:47
+ // 日期: 2024-12-31 11:15:08
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-26 15:25:47
+ // 日期: 2024-12-31 11:15:08
 ////////////////////
 
 

+ 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-17 15:05:55
+ // 日期: 2024-12-31 10:51:57
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-18 18:01:33
+ // 日期: 2024-12-31 14:19:49
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-19 09:05:13
+ // 日期: 2024-12-31 11:21:57
 ////////////////////
 
 
@@ -21,6 +21,11 @@ class sm_gate
     */
     public $gateId;
 
+    /**
+    * @var Int32 地图资源类型: (第一位: 1四方连续 2上下连续 3固定 4左右连续) default(0) 
+    */
+    public $mapRes;
+
     /**
     * @var String 地图上的装饰物: id,num;id,num;....(最多6种)  
     */
@@ -31,6 +36,16 @@ class sm_gate
     */
     public $weather;
 
+    /**
+    * @var Int32 【废弃2024.7.23】关卡难度:主线难度:1,挑战难度:1,2,3...  
+    */
+    public $gateDifficult;
+
+    /**
+    * @var Int32 关卡序号  
+    */
+    public $gateNum;
+
     /**
     * @var String 名称  
     */

+ 1 - 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 
- // 日期: 2024-12-19 09:05:13
+ // 日期: 2024-12-31 11:21:57
 ////////////////////
 
 

+ 2 - 2
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-26 17:19:00
+ // 日期: 2024-12-31 12:00:44
 ////////////////////
 
 
@@ -149,7 +149,7 @@ class sm_globalsettings
     public $sweep_cost_tili;
 
     /**
-    * @var Int32 解锁挑战模块所需的关卡id  
+    * @var Int32 解锁挑战模块所需的关卡id(废除)  
     */
     public $unlock_Challenge_need_gateId;
 

+ 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-25 14:35:56
+ // 日期: 2024-12-30 17:21:57
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-18 11:56:39
+ // 日期: 2024-12-30 14:53:34
 ////////////////////
 
 

+ 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 
- // 日期: 2024-12-26 11:35:56
+ // 日期: 2024-12-31 10:21:57
 ////////////////////
 
 

+ 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 
- // 日期: 2024-12-27 09:45:12
+ // 日期: 2024-12-31 11:42:16
 ////////////////////
 
 

+ 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 
- // 日期: 2024-12-27 09:45:12
+ // 日期: 2024-12-31 11:42:16
 ////////////////////
 
 

+ 18 - 18
Gameserver/App/model/User/Ins_GateInfo.php

@@ -88,23 +88,22 @@ class Ins_GateInfo extends Object_ext {
         return Ints::Slice($gateId, 0, 1);
     }
 
-    /**
-     * 从gateId中提取关卡地图资源类型(前端用)
-     * @param type $gateId  1 无限地图 2 上下地图 3 有限地图
-     * @return int 0..999
-     */
-    public static function GateMapRes($gateId) {
-        return Ints::Slice($gateId, 1, 4);
-    }
-
-    /**
-     * 从gateId中提取关卡难度(挑战关卡分1,2,3)
-     * @param type $gateId
-     * @return int
-     */
-    public static function GateDifficultyFromId($gateId) {
-        return Ints::Slice($gateId, 5, 1);
-    }
+//    /**
+//     * 从gateId中提取关卡地图资源类型(前端用)
+//     * @param type $gateId  1 无限地图 2 上下地图 3 有限地图
+//     * @return int 0..999
+//     */
+//    public static function GateMapRes($gateId) {
+//        return Ints::Slice($gateId, 1, 4);
+//    }
+//    /**
+//     * 从gateId中提取关卡难度(挑战关卡分1,2,3)
+//     * @param type $gateId
+//     * @return int
+//     */
+//    public static function GateDifficultyFromId($gateId) {
+//        return Ints::Slice($gateId, 5, 1);
+//    }
 
     /**
      * 关卡序号(最大999)
@@ -112,6 +111,7 @@ class Ins_GateInfo extends Object_ext {
      * @return int
      */
     public static function gateNum($gateId) {
-        return Ints::Slice($gateId, 6, 3);
+        return $gateId % 1000;
+//        return Ints::Slice($gateId, 6, 3);
     }
 }