Procházet zdrojové kódy

装备表名改成装备部位表名

cyzhao před 7 měsíci
rodič
revize
5d2c6bd8b0

+ 8 - 8
Gameserver/App/configs/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-10-16 12:02:32
+ // 日期: 2024-10-23 15:12:47
 ////////////////////
 
 namespace loyalsoft;
@@ -255,20 +255,20 @@ class GameConfig {
         return self::get_hash_item('hero', $itemid);
     }
     /**
-    * 装备表
-    * @return \equip
+    * 装备部位
+    * @return \equip_position
     */
-    public static function equip()
+    public static function equip_position()
     { 
         static $a = null; 
-        return self::initValue($a, 'equip');
+        return self::initValue($a, 'equip_position');
     }
     /**
-    * @return \sm_equip equip item数据 
+    * @return \sm_equip_position equip_position item数据 
     */
-    public static function equip_getItem($itemid)
+    public static function equip_position_getItem($itemid)
     { 
-        return self::get_hash_item('equip', $itemid);
+        return self::get_hash_item('equip_position', $itemid);
     }
     /**
     * 装备升级表

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-10-17 11:32:17
+ // 日期: 2024-10-23 15:12:47
 ////////////////////
 
 /**
@@ -253,20 +253,20 @@ class GameConfig {
         return self::get_hash_item('hero', $itemid);
     }
     /**
-    * 装备表
-    * @return \equip
+    * 装备部位
+    * @return \equip_position
     */
-    public static function equip()
+    public static function equip_position()
     { 
         static $a = null; 
-        return self::initValue($a, 'equip');
+        return self::initValue($a, 'equip_position');
     }
     /**
-    * @return \sm_equip equip item数据 
+    * @return \sm_equip_position equip_position item数据 
     */
-    public static function equip_getItem($itemid)
+    public static function equip_position_getItem($itemid)
     { 
-        return self::get_hash_item('equip', $itemid);
+        return self::get_hash_item('equip_position', $itemid);
     }
     /**
     * 装备升级表

+ 52 - 0
Gameserver/App/model/Const/sm_equip_position.php

@@ -0,0 +1,52 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-07-25 16:35:48
+////////////////////
+
+
+/**
+ * Static Model equip_position 装备部位表
+ */
+class sm_equip_position
+{
+
+    /**
+    * @var Int32 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $id;
+
+    /**
+    * @var String 名称  
+    */
+    public $name;
+
+    /**
+    * @var Int32 装备部位id1 2 3 4 5 6 default(1) 
+    */
+    public $position;
+
+    /**
+    * @var String 描述信息  
+    */
+    public $desc;
+
+    /**
+    * @var String 图片  
+    */
+    public $icon;
+
+    /**
+    * @var Int32 该部位升级消耗的图纸id default(0) 
+    */
+    public $costTuzhiId;
+
+    /**
+    * @var Int32 升级增加攻击还是生命值还是两个都加;1:加攻击力 2:生命值 3:两者都加 default(1) 
+    */
+    public $upgradeType;
+
+}
+

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-10-17 11:18:57
+ // 日期: 2024-10-17 15:05:52
 ////////////////////
 
 

+ 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-10-15 15:16:03
+ // 日期: 2024-10-17 11:35:52
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-10-09 17:59:19
+ // 日期: 2024-10-21 10:31:02
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-10-09 17:59:19
+ // 日期: 2024-10-21 10:31:02
 ////////////////////
 
 

+ 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-10-17 10:02:15
+ // 日期: 2024-10-21 10:33:33
 ////////////////////
 
 

+ 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-10-17 11:15:50
+ // 日期: 2024-10-17 15:43:49
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-10-17 11:18:43
+ // 日期: 2024-10-18 17:35:52
 ////////////////////
 
 

+ 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 
- // 日期: 2024-10-16 18:05:52
+ // 日期: 2024-10-22 15:04:58
 ////////////////////
 
 

+ 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 
- // 日期: 2024-10-16 16:53:58
+ // 日期: 2024-10-23 14:51:57
 ////////////////////
 
 
@@ -104,5 +104,10 @@ class sm_waveItem
     */
     public $bornOffset;
 
+    /**
+    * @var Int32 波次开始时先放一颗炸弹:0 不放, 1 放 default(0) 
+    */
+    public $boom;
+
 }
 

+ 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 
- // 日期: 2024-10-16 16:53:58
+ // 日期: 2024-10-23 14:51:57
 ////////////////////
 
 
@@ -104,5 +104,10 @@ class sm_waves
     */
     public $bornOffset;
 
+    /**
+    * @var Int32 波次开始时先放一颗炸弹:0 不放, 1 放 default(0) 
+    */
+    public $boom;
+
 }
 

+ 1 - 1
Gameserver/App/model/User/Ins_Equip.php

@@ -42,7 +42,7 @@ class Ins_Equip extends Object_ext{
      * @return sm_gem
      */
     public function mo() {
-        $mo = GameConfig::equip_getItem($this->typeId);
+        $mo = GameConfig::equip_position_getItem($this->typeId);
         my_Assert(null != $mo, ErrCode::err_const_no);
         return $mo;
     }

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

@@ -643,7 +643,7 @@ class StoreProc {
         my_Assert($lv < $maxLv, ErrCode::user_store_equipLevelLimit);
         $mo = GameConfig::equip_levelupgrade_getItem($lv);
         my_Assert($user->baseInfo->gold >= $mo->needGold, ErrCode::notenough_gold_msg);
-        $costTuzhiId = GameConfig::equip_getItem($posId)->costTuzhiId;
+        $costTuzhiId = GameConfig::equip_position_getItem($posId)->costTuzhiId;
 
         $tuzhiNum = 0;
         if (StlUtil::dictHasProperty($user->store->items, $costTuzhiId)) {
@@ -685,7 +685,7 @@ class StoreProc {
 
         $need_gold = 0;
         $need_item = 0;
-        $tuzhiId = GameConfig::equip_getItem($posId)->costTuzhiId;
+        $tuzhiId = GameConfig::equip_position_getItem($posId)->costTuzhiId;
 
         $itemNum_store = 0;
         if (StlUtil::dictHasProperty($user->store->items, $tuzhiId)) {