This commit is contained in:
aozhiwei 2022-09-19 10:20:52 +08:00
parent 6b4da77aba
commit a94be1563f

View File

@ -53,7 +53,7 @@ class FormulaService extends BaseService {
(0.8 - ($instanceRank - 1) * 0.25 + $bossReward * 0.2) * (0.8 - ($instanceRank - 1) * 0.25 + $bossReward * 0.2) *
1/10; 1/10;
return 0; return round(ceg);
} }
public static function calcWeaponPvpCeg($weaponDto, $params) public static function calcWeaponPvpCeg($weaponDto, $params)
@ -83,9 +83,17 @@ class FormulaService extends BaseService {
return round($ceg); return round($ceg);
} }
public static function calcWeaponPveCeg($weaponDb) public static function calcWeaponPveCeg($weaponDb, $instanceLevel, $instanceRank, $bossReward)
{ {
return 0; $upLimit = $weaponDto['pve_ceg_uplimit'];
$weaponQuality = $weaponDto['quality'];
$ceg = $upLimit *
max(1.15 - ($weaponQuality - $instanceLevel) * 0.25, 0) *
(0.8 - ($instanceRank - 1) * 0.25 + $bossReward * 0.2) *
1/10;
return round(ceg);
} }
public static function getHeroPvpTiliTotalValue($heroDb) public static function getHeroPvpTiliTotalValue($heroDb)