gwang 4 years ago
parent
commit
33f17ae41d

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

@@ -4,7 +4,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2020-09-25 16:15:31
+ // 日期: 2020-10-22 15:53:31
 ////////////////////
 
 /**
@@ -400,6 +400,22 @@ class GameConfig {
         return self::get_hash_item('sysmail', $itemid);
     }
     /**
+    * 言灵附加随机表
+    * @return \item_additional
+    */
+    public static function item_additional()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'item_additional');
+    }
+    /**
+    * @return \sm_item_additional item_additional item数据 
+    */
+    public static function item_additional_getItem($itemid)
+    { 
+        return self::get_hash_item('item_additional', $itemid);
+    }
+    /**
     * 活跃点奖励表
     * @return \task_active_reward
     */

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

@@ -4,7 +4,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2020-09-03 09:31:06
+ // 日期: 2020-10-21 18:29:19
 ////////////////////
 
 

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

@@ -4,7 +4,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2020-09-24 14:56:04
+ // 日期: 2020-10-15 16:57:49
 ////////////////////
 
 

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

@@ -4,7 +4,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2020-09-24 14:58:50
+ // 日期: 2020-10-22 15:06:44
 ////////////////////
 
 

+ 8 - 3
Gameserver/Amfphp/model/Const/sm_hero.php

@@ -4,7 +4,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2020-09-25 09:40:27
+ // 日期: 2020-10-22 11:04:43
 ////////////////////
 
 
@@ -260,7 +260,7 @@ class sm_hero
     public $leaderSkill;
 
     /**
-    * @var String 【新】普攻  
+    * @var String 【新】普攻(2020.10.21 改为逗号分隔的技能列表)  
     */
     public $skill_normal;
 
@@ -310,9 +310,14 @@ class sm_hero
     public $beattackSound;
 
     /**
-    * @var UInt32 关联掉落表唯一id default(0000000000) 
+    * @var Int32 关联掉落表唯一id  
     */
     public $dropId;
 
+    /**
+    * @var String 人工智能行为树  
+    */
+    public $ai_btree;
+
 }
 

+ 68 - 0
Gameserver/Amfphp/model/Const/sm_item_additional.php

@@ -0,0 +1,68 @@
+<?php
+
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2020-10-15 15:53:40
+////////////////////
+
+
+/**
+ * Static Model item_additional 言灵附加随机表
+ */
+class sm_item_additional
+{
+
+    /**
+    * @var Int32 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $id;
+
+    /**
+    * @var Int32 附加生命 default(0) 
+    */
+    public $hp;
+
+    /**
+    * @var Int32 攻击 default(0) 
+    */
+    public $atk;
+
+    /**
+    * @var Int32 防御 default(0) 
+    */
+    public $def;
+
+    /**
+    * @var Int32 暴击 default(0) 
+    */
+    public $crit;
+
+    /**
+    * @var Int32 物理攻击 default(0) 
+    */
+    public $phyAtk;
+
+    /**
+    * @var Int32 防御护甲 default(0) 
+    */
+    public $phyDef;
+
+    /**
+    * @var Int32 攻击速度 default(0) 
+    */
+    public $atkSpeed;
+
+    /**
+    * @var Int32 法术强度 default(0) 
+    */
+    public $fashuqiangdu;
+
+    /**
+    * @var Int32 魔法抗性 default(0) 
+    */
+    public $mofakangxing;
+
+}
+

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

@@ -4,7 +4,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2020-09-09 11:42:15
+ // 日期: 2020-10-22 15:21:27
 ////////////////////
 
 

+ 72 - 2
Gameserver/Amfphp/model/Const/sm_item_yanling.php

@@ -4,7 +4,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2020-09-09 11:43:08
+ // 日期: 2020-10-22 11:55:47
 ////////////////////
 
 
@@ -25,10 +25,15 @@ class sm_item_yanling
     public $hero_id;
 
     /**
-    * @var Int32 言灵的装备位置: 左: 1, 中 2 右 3 default(0) 
+    * @var Int32 言灵的装备位置: 上: 1, 中 2 下3 default(0) 
     */
     public $position;
 
+    /**
+    * @var String 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $res;
+
     /**
     * @var Int32 所属角色类型: 1 物理, 2 魔法 default(0) 
     */
@@ -99,5 +104,70 @@ class sm_item_yanling
     */
     public $career;
 
+    /**
+    * @var Int32 生命上限加成 default(0) 
+    */
+    public $additional_hpUpperlimit;
+
+    /**
+    * @var Int32 言能上限加成 default(0) 
+    */
+    public $additional_manaUpperlimit;
+
+    /**
+    * @var Int32 物攻伤害加成 default(0) 
+    */
+    public $additional_phyDamage;
+
+    /**
+    * @var Int32 言攻伤害加成 default(0) 
+    */
+    public $additional_magDamage;
+
+    /**
+    * @var Int32 护甲加成 default(0) 
+    */
+    public $additional_phyDefend;
+
+    /**
+    * @var Int32 言抗加成 default(0) 
+    */
+    public $additional_magDefend;
+
+    /**
+    * @var Int32 物伤减免加成 default(0) 
+    */
+    public $additional_phyDamagereduce;
+
+    /**
+    * @var Int32 言伤减免加成 default(0) 
+    */
+    public $additional_magDamagereduce;
+
+    /**
+    * @var Int32 怪物经验加成  
+    */
+    public $additional_monsterExp;
+
+    /**
+    * @var Int32 攻击速度加成  
+    */
+    public $additional_atkSpeed;
+
+    /**
+    * @var Int32 移动速度加成  
+    */
+    public $additional_moveSpeed;
+
+    /**
+    * @var Int32 暴击几率加成  
+    */
+    public $additional_critProbability;
+
+    /**
+    * @var Int32 暴击伤害加成  
+    */
+    public $additional_critDamage;
+
 }
 

+ 3 - 2
Gameserver/Amfphp/process/StoreProc.php

@@ -437,10 +437,10 @@ class StoreProc {
                 case 341:                                                       # 战场中掉落,不会进入包裹
                 case 342:
                 case 343:
-                    Err(ErrCode::err_innerfault, "落入包裹时,出现了非法物品");
+                    Err(ErrCode::err_innerfault, "落入包裹时,出现了非法物品($itemId)");
                     break;
                 default :
-                    Err(ErrCode::err_innerfault, "落入包裹时,出现了非法物品");
+                    Err(ErrCode::err_innerfault, "落入包裹时,出现了非法物品($itemId)");
             }
         }
         return ErrCode::ok;                                                     // 返回
@@ -455,6 +455,7 @@ class StoreProc {
         list($rwdStr) = $req->paras;
         $err = self::AddMultiItemInStore($req, $rwdStr);
         my_Assert(ErrCode::ok == $err, $err);
+        UserProc::updateUserInfo();
         return Resp::ok();
 //        Err(ErrCode::err_innerfault, "功能待开发 -王刚 2020年1月17日14:36:01");
     }

+ 2 - 0
Gameserver/Amfphp/process/UserProc.php

@@ -187,9 +187,11 @@ class UserProc {
             $huid = 10001;                                                      # 初始英雄
             $pos = 1;
             $newYanlingTypeId = 4020001;                                        # 普通上官雀
+
             $hero = $user->heros->collectHeros->$huid;
             $oldYanlingUId = $hero->yanling->$pos->itemuid;
             $user->store->yanling->$oldYanlingUId->typeId = $newYanlingTypeId;  # 直接修改类型变为普通言灵
+//              $info= json_decode( '{"1":4011101,"2":4011201,"3":4011301}');
         }
         $NewbieGuide->guideStep = $guideIndex;
         $user->NewbieGuide = $NewbieGuide;

+ 10 - 0
Gameserver/nbproject/private/private.xml

@@ -12,7 +12,17 @@
     </editor-bookmarks>
     <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
         <group>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/util/HttpUtil.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/StoreModel.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/index.php</file>
             <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/base/ErrCode.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/StoreProc.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/base/OpeCode.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/ShopProc.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/TaskProc.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/UserGameModel.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/UserProc.php</file>
+            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/UserGameHeroModel.php</file>
         </group>
     </open-files>
 </project-private>