Browse Source

武器唤灵师等级

cyzhao 4 years ago
parent
commit
5bf4187efa

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-06-09 18:51:44
+ // 日期: 2021-06-10 10:02:46
 ////////////////////
 namespace loyalsoft;
 /**

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-06-09 18:51:44
+ // 日期: 2021-06-10 10:02:46
 ////////////////////
 
 /**

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-06-04 17:31:06
+ // 日期: 2021-06-10 09:51:57
 ////////////////////
 
 
@@ -29,9 +29,14 @@ class sm_weapon_levelexp
     public $level;
 
     /**
-    * @var Int32 达到当前等级所需经验 default(100) 
+    * @var Int32 达到当前等级所需经验 default(0) 
     */
     public $needExp;
 
+    /**
+    * @var Int32 用途未知!!请到数据库中添加字段注释。 default(0) 
+    */
+    public $requiredExp;
+
 }
 

+ 6 - 1
Gameserver/Amfphp/model/Const/sm_yanlingLeve.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-06-08 10:54:08
+ // 日期: 2021-06-10 09:43:38
 ////////////////////
 
 
@@ -33,6 +33,11 @@ class sm_yanlingLeve
     */
     public $needExp;
 
+    /**
+    * @var Int32 用途未知!!请到数据库中添加字段注释。 default(0) 
+    */
+    public $requiredExp;
+
     /**
     * @var Int32 金币消耗---废弃 default(0) 
     */

+ 6 - 1
Gameserver/Amfphp/model/Const/sm_yanlingLevel_type.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-06-08 10:54:08
+ // 日期: 2021-06-10 09:43:38
 ////////////////////
 
 
@@ -33,6 +33,11 @@ class sm_yanlingLevel_type
     */
     public $needExp;
 
+    /**
+    * @var Int32 用途未知!!请到数据库中添加字段注释。 default(0) 
+    */
+    public $requiredExp;
+
     /**
     * @var Int32 金币消耗---废弃 default(0) 
     */

+ 1 - 1
Gameserver/Amfphp/process/HeroProc.php

@@ -603,7 +603,7 @@ class HeroProc {
         $f = (array) $heroLvDic;
         ksort($f);
         foreach ($f as $lv => $mo) {
-            if ($targetHero->xp < $mo->needExp) {
+            if ($targetHero->xp < $mo->requiredExp) {
                 $curLv = $lv - 1;
                 break;
             }

+ 4 - 4
Gameserver/Amfphp/process/StoreProc.php

@@ -99,7 +99,7 @@ class StoreProc {
             $mo = GameConfig::item_weapon_getItem($equipment->$wuqiId->typeId);           
             $baseExp = $mo->baseExp;
             $needExp = GameConfig::weapon_levelexp_getItem(GameConfig::item_base_getItem($equipment->$wuqiId->typeId)->quality,$equipment->$wuqiId->level)->needExp;
-            $wuqiExp += ($baseExp+$needExp)*0.75;
+            $wuqiExp += ($baseExp + $equipment->$wuqiId->exp)*0.75;
             $totalGold += $mo->costGold;
         }
         
@@ -142,13 +142,13 @@ class StoreProc {
         $curLv = 0;
         $heroLvDic = GameConfig::weapon_levelexp()->$qual;          
         $f = (array) $heroLvDic;     
-        ksort($f); 
+        ksort($f);             
         foreach ($f as $lv => $mo) {
-            if($xp < $mo->needExp){
+            if($xp < $mo->requiredExp){
                 $curLv = $lv-1;
                 break;
             }
-            
+                      
             if($lv>=glc()->Weapon_Upgrade_BasicMaxLevel){
                 $curLv = glc()->Weapon_Upgrade_BasicMaxLevel;
                 break;