cyzhao 5 tháng trước cách đây
mục cha
commit
b5a553847e

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-26 15:31:12
+ // 日期: 2024-12-26 16:41:32
 ////////////////////
 
 /**

+ 5 - 5
Gameserver/App/model/Const/sm_equip_power.php

@@ -14,7 +14,7 @@ class sm_equip_power
 {
 
     /**
-    * @var String 用途未知!!请到数据库中添加字段注释。  
+    * @var Int32 用途未知!!请到数据库中添加字段注释。  
     */
     public $id;
 
@@ -24,14 +24,14 @@ class sm_equip_power
     public $rarity;
 
     /**
-    * @var Int32 品阶: 白,绿,蓝,紫,紫+1,紫+2.....  
+    * @var Int32 部位: 1 武器, 2 护甲, 3 项链, 4 腰带, 5 手套, 6 靴子  
     */
-    public $qual;
+    public $position;
 
     /**
-    * @var Int32 部位: 1 武器, 2 护甲, 3 项链, 4 腰带, 5 手套, 6 靴子  
+    * @var Int32 品阶: 白,绿,蓝,紫,紫+1,紫+2.....  
     */
-    public $position;
+    public $qual;
 
     /**
     * @var Single 装备战力系数  

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-24 16:35:56
+ // 日期: 2024-12-26 16:30:46
 ////////////////////
 
 

+ 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-12-26 15:00:24
+ // 日期: 2024-12-26 16:05:56
 ////////////////////
 
 

+ 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-12-26 15:00:24
+ // 日期: 2024-12-26 16:05:56
 ////////////////////
 
 

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

@@ -56,7 +56,7 @@ class FightPower_Calculate {
         foreach ($equipDic as $index => $equipUid) {
             //等级
             $ins_Equip = new Ins_Equip(ctx()->store->equip->$equipUid);
-            $equipParam += GameConfig::equip_power_getItem($ins_Equip->mo()->rarity, $ins_Equip->qual, $ins_Equip->mo()->position);
+            $equipParam += GameConfig::equip_power_getItem($ins_Equip->mo()->rarity, $ins_Equip->qual, $ins_Equip->mo()->position)->power;
             if ($ins_Equip->mo()->position % 2 == 1) {
                 $attck += GameConfig::equip_levelupgrade_getItem($ins_Equip->mo()->rarity, $ins_Equip->qual, $ins_Equip->mo()->position, $ins_Equip->level)->attckNum;
             } elseif ($ins_Equip->mo()->position % 2 == 0) {
@@ -135,7 +135,7 @@ class FightPower_Calculate {
         $shanghaijianmian_xiaoguo = $dic->$mulDecDamage;
         
         $fightPower = ($base_addDamage*$attackParas + $base_addHp*$hpParas + (1+$baojilv)*(1+$baojishanghai)*$attackParas + $roushihuifu*(1+$roushihuifu_xiaoguo)*$hpParas + $shanghaijianmian*(1+$shanghaijianmian_xiaoguo)* $hpParas)*(1 + $equipParam + $mo->mulFightPower);
-     
+       
         return round($fightPower,0);
     }