1
This commit is contained in:
parent
52d7023e4a
commit
3fc830c086
@ -152,6 +152,7 @@ class RoomBattleDataService extends BaseService {
|
||||
$mapModeMeta = mt\MapMode::findByMapMode($this->mapMode);
|
||||
$teamRank = getXVal($this->teamData,'pvp_team_rank', 0);
|
||||
if ($mapModeMeta){
|
||||
$baseGold = 0;
|
||||
$gold = 0;
|
||||
$accountLucky = Hero::getAccountLucky($userDb['address']);
|
||||
$rewardMeta = mt\BattleReward::find($mapModeMeta['rewardMode'],$accountLucky);
|
||||
@ -172,6 +173,7 @@ class RoomBattleDataService extends BaseService {
|
||||
foreach ($items as $item){
|
||||
if ($item['item_id'] = V_ITEM_GOLD){
|
||||
$gold = $item['item_num'];
|
||||
$baseGold = $item['item_num'];
|
||||
}else{
|
||||
array_push($reward,$item);
|
||||
}
|
||||
@ -202,6 +204,25 @@ class RoomBattleDataService extends BaseService {
|
||||
$computeMaxEffect = mt\Parameter::getVal('economy_account_compute_E',0);
|
||||
$gold = $gold * ($totalCompute / ($totalCompute + $computeParam) * $computeMaxEffect + 1);
|
||||
}
|
||||
if ($userDb['account_id'] == "6513_2006_wzXEMuD5cXc68z0K20yTUIPY1U6GcLJo"){
|
||||
error_log("BattleRewardsInfo:".json_encode(array(
|
||||
'goldLootIndex' => $rewardMeta['goldLoot'],
|
||||
'*baseGold*' => $baseGold,
|
||||
'teamRank' => $teamRank,
|
||||
'*ranking*' => isset($coefficient) ? $coefficient : '空',
|
||||
'battleScore' => $battleScore,
|
||||
'roomScoreAvg' => $this->scoreAvg,
|
||||
'*score*' => isset($avg) ? $avg : '空',
|
||||
'wealthK' => $wealthK,
|
||||
'wealthE' => $wealthE,
|
||||
'wealthValue' => Hero::getHeroWealth($heroDb),
|
||||
'*wealth*' => (1 + $wealthE * (Hero::getHeroWealth($heroDb) / (Hero::getHeroWealth($heroDb) + $wealthK))),
|
||||
'lastCompute' => isset($lastCompute) ? $lastCompute : '空',
|
||||
'currentCompute' => isset($currentCompute) ? $currentCompute : '空',
|
||||
'*compute*' =>$currentPeriod ? $totalCompute / ($totalCompute + $computeParam) * $computeMaxEffect + 1 : '算力系统关闭',
|
||||
'finalGold' => floor($gold)
|
||||
)));
|
||||
}
|
||||
if ($gold > 0){
|
||||
array_push($reward,array(
|
||||
"item_id" => V_ITEM_GOLD,
|
||||
|
Loading…
x
Reference in New Issue
Block a user