This commit is contained in:
aozhiwei 2022-09-19 10:17:56 +08:00
parent 42094642c9
commit 6b4da77aba

View File

@ -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%对应比例])