浏览代码

唤灵师

cyzhao 4 年之前
父节点
当前提交
80c0081499

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

@@ -480,6 +480,11 @@ class CmdCode {
      * 升级
      */
     const cmd_hero_YanlinUpLevel = 6327;
+    
+    /**
+     * 突破
+     */
+    const cmd_hero_tupo = 6328;
 // </editor-fold>
     //
     // <editor-fold defaultstate="collapsed" desc="仓库操作码 - 64xx">

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-05-11 17:36:30
+ // 日期: 2021-05-24 17:26:13
 ////////////////////
 namespace loyalsoft;
 /**
@@ -278,6 +278,22 @@ class GameConfig {
         return self::get_hash_item('item_yanling', $itemid);
     }
     /**
+    * 
+    * @return \tupo_huanlingshi
+    */
+    public static function tupo_huanlingshi()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'tupo_huanlingshi');
+    }
+    /**
+    * @return \sm_tupo_huanlingshi tupo_huanlingshi item数据 
+    */
+    public static function tupo_huanlingshi_getItem($itemid)
+    { 
+        return self::get_hash_item('tupo_huanlingshi', $itemid);
+    }
+    /**
     * 商城
     * @return \shop
     */

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-05-20 16:20:02
+ // 日期: 2021-05-24 17:26:13
 ////////////////////
 
 /**
@@ -278,6 +278,22 @@ class GameConfig {
         return self::get_hash_item('item_yanling', $itemid);
     }
     /**
+    * 
+    * @return \tupo_huanlingshi
+    */
+    public static function tupo_huanlingshi()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'tupo_huanlingshi');
+    }
+    /**
+    * @return \sm_tupo_huanlingshi tupo_huanlingshi item数据 
+    */
+    public static function tupo_huanlingshi_getItem($itemid)
+    { 
+        return self::get_hash_item('tupo_huanlingshi', $itemid);
+    }
+    /**
     * 商城
     * @return \shop
     */

+ 1 - 1
Gameserver/Amfphp/model/Const/primordial_data.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-04-09 15:18:36
+ // 日期: 2021-05-24 11:09:53
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-05-13 14:20:44
+ // 日期: 2021-05-24 17:17:04
 ////////////////////
 
 

+ 7 - 2
Gameserver/Amfphp/model/Const/sm_hero_levelexp.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2020-09-02 18:00:39
+ // 日期: 2021-05-24 17:10:10
 ////////////////////
 
 
@@ -24,10 +24,15 @@ class sm_hero_levelexp
     public $level;
 
     /**
-    * @var Int32 【废弃】升级消耗金币 default(99999) 
+    * @var Int32 升级消耗金币 default(0) 
     */
     public $gold;
 
+    /**
+    * @var String xiao  
+    */
+    public $costItems;
+
     /**
     * @var Int32 达到当前等级所需经验 default(100) 
     */

+ 1 - 1
Gameserver/Amfphp/model/Const/sm_plot.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-05-12 10:09:13
+ // 日期: 2021-05-24 15:41:00
 ////////////////////
 
 

+ 47 - 0
Gameserver/Amfphp/model/Const/sm_tupo_huanlingshi.php

@@ -0,0 +1,47 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2021-05-24 16:07:04
+////////////////////
+
+
+/**
+ * Static Model tupo_huanlingshi 
+ */
+class sm_tupo_huanlingshi
+{
+
+    /**
+    * @var Int32 星级 default(0) 
+    */
+    public $id;
+
+    /**
+    * @var String 描述信息  
+    */
+    public $desc;
+
+    /**
+    * @var Int32 星级限制等级信息 default(0) 
+    */
+    public $maxLv;
+
+    /**
+    * @var String 材料信息  
+    */
+    public $items;
+
+    /**
+    * @var String 消耗金币  
+    */
+    public $gold;
+
+    /**
+    * @var String 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $etc;
+
+}
+

+ 19 - 0
Gameserver/Amfphp/process/HeroProc.php

@@ -16,6 +16,9 @@ class HeroProc {
         switch (req()->cmd) {
             case CmdCode::cmd_hero_levelup:                                     #  [6301] 英雄升级
                 return HeroProc::HeroLevelUpCostExpItem();
+            case CmdCode::cmd_hero_tupo:                                        #  [6301] 英雄升级
+                return HeroProc::tupo();
+                
             // <editor-fold defaultstate="collapsed" desc="过时 接口">                
             case CmdCode::cmd_hero_stageup:                                     #  [6304] 英雄进阶 SABCD
                 return HeroProc::HeroStageUp();
@@ -247,6 +250,22 @@ class HeroProc {
         return Resp::ok($ret);
     }
 
+    /**
+     * 突破
+     */
+    static function tupo() {
+        list($huid) = req()->paras;
+        
+        
+        UserProc::updateUserInfo();
+        $ret = array(
+            'hero' => $targetHero,
+            'store' => $user->store
+        );
+        return Resp::ok($ret);
+    }
+
+
 // </editor-fold>
 // 
 // <editor-fold defaultstate="collapsed" desc="队伍配置">