1
This commit is contained in:
parent
4d2db1c144
commit
c2429b1fc3
@ -471,8 +471,30 @@ class BattleDataService extends BaseService {
|
||||
|
||||
$onlineNum = $this->getOnlineNumber();
|
||||
|
||||
$heroProbability = min($heroFragment[$now].total / $onlineNum * 5 * ($instanceRankRate + $bossReward*0.2) * pow(2, $todayPveBattleTimes - $todayPveGetFragmentNum -1), 1);
|
||||
$gunProbability = min($gunFragment[$now].total / $onlineNum * $dropRate * ($instanceRankRate + $bossReward*0.2) * pow(2, $todayPveBattleTimes - $todayPveGetFragmentNum -1), 1);
|
||||
$rankedTopX= getXVal($params, 'ranked_topx');
|
||||
$meta = mt\FormulaPvp::getByRanked($rankedTopX);
|
||||
if (!$meta) {
|
||||
return;
|
||||
}
|
||||
|
||||
$heroProbability = min($heroFragment[$now].total / $onlineNum *
|
||||
5 *
|
||||
(
|
||||
0.5*$meta['ranked_topx'] +
|
||||
0.25*$meta['kills_topx'] +
|
||||
0.15*$meta['hero_topx'] +
|
||||
0.05*$meta['weapon_topx']
|
||||
) *
|
||||
pow(2, ($todayPvpBattleTimes % 10) - 1), 1);
|
||||
$gunProbability = min($gunFragment[$now].total / $onlineNum *
|
||||
5 *
|
||||
(
|
||||
0.5*$meta['ranked_topx'] +
|
||||
0.25*$meta['kills_topx'] +
|
||||
0.15*$meta['hero_topx'] +
|
||||
0.05*$meta['weapon_topx']
|
||||
) *
|
||||
pow(2, ($todayPvpBattleTimes % 10) - 1), 1);
|
||||
|
||||
$heroProbability = max($heroProbability, 0);
|
||||
$gunProbability = max($gunProbability, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user