Prechádzať zdrojové kódy

加灵宠属性配置

cyzhao 2 mesiacov pred
rodič
commit
18935a8597

+ 17 - 1
Gameserver/App/configs/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-04-01 09:54:07
+ // 日期: 2025-04-07 17:28:44
 ////////////////////
 
 namespace loyalsoft;
@@ -1320,6 +1320,22 @@ class GameConfig {
         return self::get_hash_item('pet_area', $key);
     }
     /**
+    * 宠物属性
+    * @return \pet_attr
+    */
+    public static function pet_attr()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'pet_attr');
+    }
+    /**
+    * @return \sm_pet_attr pet_attr item数据 
+    */
+    public static function pet_attr_getItem($rarity, $qual)
+    { 
+        return self::get_hash_item('pet_attr', "$rarity-$qual");
+    }
+    /**
     * 当前版本(时间戳)
     * @return \ver
     */

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-03-31 12:05:07
+ // 日期: 2025-04-08 10:50:39
 ////////////////////
 
 /**
@@ -1318,6 +1318,22 @@ class GameConfig {
         return self::get_hash_item('pet_area', $key);
     }
     /**
+    * 宠物属性
+    * @return \pet_attr
+    */
+    public static function pet_attr()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'pet_attr');
+    }
+    /**
+    * @return \sm_pet_attr pet_attr item数据 
+    */
+    public static function pet_attr_getItem($rarity, $qual)
+    { 
+        return self::get_hash_item('pet_attr', "$rarity-$qual");
+    }
+    /**
     * 当前版本(时间戳)
     * @return \ver
     */

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-03-31 12:06:19
+ // 日期: 2025-03-31 13:56:56
 ////////////////////
 
 

+ 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 
- // 日期: 2025-03-26 10:08:12
+ // 日期: 2025-04-01 15:02:55
 ////////////////////
 
 

+ 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 
- // 日期: 2025-03-27 11:36:50
+ // 日期: 2025-04-02 15:27:00
 ////////////////////
 
 

+ 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 
- // 日期: 2025-03-27 11:36:50
+ // 日期: 2025-04-02 15:27:00
 ////////////////////
 
 

+ 62 - 0
Gameserver/App/model/Const/sm_pet_attr.php

@@ -0,0 +1,62 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2025-04-07 17:25:12
+////////////////////
+
+
+/**
+ * Static Model pet_attr 宠物属性
+ */
+class sm_pet_attr
+{
+
+    /**
+    * @var Int32 唯一  
+    */
+    public $id;
+
+    /**
+    * @var Int32 稀有度 default(0) 
+    */
+    public $rarity;
+
+    /**
+    * @var Int32 品阶 default(0) 
+    */
+    public $qual;
+
+    /**
+    * @var Int32 基础攻击力 default(0) 
+    */
+    public $attack;
+
+    /**
+    * @var Int32 攻击力的继承比例 default(0) 
+    */
+    public $inherit_attack;
+
+    /**
+    * @var Int32 攻击力的每级的加成值 default(0) 
+    */
+    public $addNum_attack;
+
+    /**
+    * @var Int32 基础生命 default(0) 
+    */
+    public $hp;
+
+    /**
+    * @var Int32 生命的继承比例 default(0) 
+    */
+    public $inherit_hp;
+
+    /**
+    * @var Int32 生命的每级的加成值 default(0) 
+    */
+    public $addNum_hp;
+
+}
+

+ 2 - 2
Gameserver/App/model/Const/sm_plots.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-03-07 11:39:07
+ // 日期: 2025-04-07 11:00:55
 ////////////////////
 
 
@@ -45,7 +45,7 @@ class sm_plots
     public $position;
 
     /**
-    * @var Int32 显式时间:(波次id)(stage类型>=3的时候生效)  
+    * @var Int32 显式时间:(波次id)(stage类型>=3的时候生效)Ps.波次定制的剧情,填写999  
     */
     public $fireTs;
 

+ 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-03-28 15:22:02
+ // 日期: 2025-04-08 10:20:57
 ////////////////////
 
 
@@ -125,5 +125,10 @@ class sm_waveItem
     */
     public $boom;
 
+    /**
+    * @var String 是否加入剧情: 0,0,0 (开始剧情stageId, 锁血剧情stageId, 结束剧情stageId) default(0,0,0) 
+    */
+    public $plots;
+
 }
 

+ 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-03-28 15:22:02
+ // 日期: 2025-04-08 10:20:57
 ////////////////////
 
 
@@ -125,5 +125,10 @@ class sm_waves
     */
     public $boom;
 
+    /**
+    * @var String 是否加入剧情: 0,0,0 (开始剧情stageId, 锁血剧情stageId, 结束剧情stageId) default(0,0,0) 
+    */
+    public $plots;
+
 }