1
This commit is contained in:
parent
42094642c9
commit
6b4da77aba
@ -43,13 +43,19 @@ class FormulaService extends BaseService {
|
||||
return round($ceg);
|
||||
}
|
||||
|
||||
public static function calcHeroPveCeg($heroDb, $uplimit)
|
||||
public static function calcHeroPveCeg($heroDto, $instanceLevel, $instanceRank, $bossReward)
|
||||
{
|
||||
$upLimit = $heroDto['pve_ceg_uplimit'];
|
||||
$heroQuality = $heroDto['quality'];
|
||||
|
||||
$ceg = $upLimit *
|
||||
max(1.15 - ($heroQuality - $instanceLevel) * 0.25, 0) *
|
||||
(0.8 - ($instanceRank - 1) * 0.25 + $bossReward * 0.2) *
|
||||
1/10;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static function calcWeaponPvpCeg($weaponDto, $params)
|
||||
{
|
||||
//PVP武器NFT每日获得极限*(50%*[每局排名TopX%对应比例]+25%*[每局PK人数排名TopX%对应比例]+15%*[每局英雄属性排名TopX%对应比例]+5%*[每局武器属性排名TopX%对应比例]+5%*[每局存活时间排名TopX%对应比例])
|
||||
|
Loading…
x
Reference in New Issue
Block a user