cyzhao 1 год назад
Родитель
Сommit
adf598a1e0
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      Gameserver/App/process/FightProc.php

+ 3 - 3
Gameserver/App/process/FightProc.php

@@ -1033,7 +1033,7 @@ class FightProc {
     }
 
     /*
-     * 统计战力 战斗力=0.75*攻击+0.12*生命+1*伤害减免+1*攻击速度+2*暴击伤害倍率
+     * 统计战力 战斗力=攻击x(生命-伤害减免值)x(1+暴击率x(暴击伤害倍率-1))
      */
 
     public static function countUserFightPower() {
@@ -1059,9 +1059,9 @@ class FightProc {
 
         $dec_demage = $mo->dec_demage;
         $bigHit_Val = $mo->bigHit_Val;
-        $mul_bullet_speed = $mo->mul_bullet_speed;
+        $bigHit_rate = $mo->bigHit_rate;
 
-        $val = 0.75 * $heroAttck + 0.12 * $heroHp + 1 * $dec_demage + 1 * $mul_bullet_speed + 2 * $$bigHit_Val;
+        $val = $heroAttck * ($heroHp-$dec_demage) * (1+$bigHit_rate*($bigHit_Val-1));
 
         return intval($val);
     }