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