1
This commit is contained in:
parent
6b4da77aba
commit
a94be1563f
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user