1
This commit is contained in:
parent
1204438a3e
commit
d0c351f3e6
@ -335,10 +335,12 @@ class RoomBattleDataService extends BaseService {
|
||||
$rate = isset($chestLootProbArr[$teamRank-1]) ? $chestLootProbArr[$teamRank-1] : 0;
|
||||
if ($rate > 0 && !empty($member['box_num']) && myself()->_switchIsOpen('bigEventBoxDrop')){
|
||||
$rewardBox = array();
|
||||
$realBoxNum = 0;
|
||||
for ($i = 0; $i < $member['box_num']; ++$i) {
|
||||
$rand = $rate * 100;
|
||||
$rnd = rand(1,100);
|
||||
if ($rnd <= $rand){
|
||||
++$realBoxNum;
|
||||
$chestItems = LootService::dropOutItem($rewardMeta['chestLoot']);
|
||||
if (count($chestItems)>0){
|
||||
$event = array(
|
||||
@ -372,7 +374,7 @@ class RoomBattleDataService extends BaseService {
|
||||
if ($row) {
|
||||
services\BattleBoxService::incDropTotalNum($row['phase'],
|
||||
$row['createtime'],
|
||||
$member['box_num']);
|
||||
$realBoxNum);
|
||||
}
|
||||
}
|
||||
$rewardBoxResult = myself()->_mergeAlikeItemKey($rewardBox);
|
||||
|
Loading…
x
Reference in New Issue
Block a user