1
This commit is contained in:
parent
d5454dcca3
commit
403e3b8448
@ -97,13 +97,6 @@ class LootService
|
||||
}
|
||||
$p = min($po + ($recycleTimes-1) * $pd,$pm) * 100 ;
|
||||
$rnd = rand(1,100);
|
||||
error_log("LOOT".json_encode(array(
|
||||
'totalTimes' => $lootMeta['id'].'|'.$totalTimes,
|
||||
'recycleTimes' => $lootMeta['id'].'|'.$recycleTimes,
|
||||
'rnd' => $rnd,
|
||||
'rate' => $p,
|
||||
'lootMeta' => $lootMeta,
|
||||
)));
|
||||
// myself()->_incV(TN_TOTAL_LOOT_TIMES,0,1);
|
||||
ServerTaskBattleCount::incV($period,$lootMeta['id'],ServerTaskBattleCount::TOTAL_COUNT,1);
|
||||
if ($rnd <= $p){
|
||||
|
@ -167,7 +167,6 @@ class RoomBattleDataService extends BaseService {
|
||||
$gold = 0;
|
||||
// $accountLucky = Hero::getAccountLucky($userDb['address']);
|
||||
$accountLucky = Hero::getAccountLuckyTemp();
|
||||
error_log("LootLucky:".$accountLucky);
|
||||
$rewardMeta = mt\BattleReward::find($mapModeMeta['rewardMode'],$accountLucky);
|
||||
if (!$rewardMeta){
|
||||
return ;
|
||||
@ -240,28 +239,7 @@ class RoomBattleDataService extends BaseService {
|
||||
|
||||
$hashRateValue = round($powerRate,4);
|
||||
}
|
||||
if ($userDb['account_id'] == "6517_2006_s1_0_104162729566475397176"){
|
||||
error_log("BattleGoldRecord:".json_encode(array(
|
||||
'goldLootIndex' => $rewardMeta['goldLoot'],
|
||||
'map_mode' => $this->mapMode,
|
||||
'*baseGold*' => $baseGold,
|
||||
'teamRank' => $teamRank,
|
||||
'*ranking*' => isset($coefficient) ? $coefficient : '空',
|
||||
'battleScore' => $battleScore,
|
||||
'realUserCount' => $this->realUserCount,
|
||||
'teamScoreTotal' => $teamScore,
|
||||
'teamScoreAvg' => $teamScoreAvg,
|
||||
'*score*' => '=========',
|
||||
'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*' => isset($compute) ? $compute : '算力系统关闭',
|
||||
'finalGold' => floor($gold)
|
||||
)));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if ($gold > 0){
|
||||
|
Loading…
x
Reference in New Issue
Block a user