1
This commit is contained in:
parent
954964e4dd
commit
d9faafab9f
@ -286,6 +286,7 @@ class RoomBattleDataService extends BaseService {
|
|||||||
$rnd = rand(1,100);
|
$rnd = rand(1,100);
|
||||||
if ($rnd <= $rand){
|
if ($rnd <= $rand){
|
||||||
$chestItems = LootService::dropOutItem($rewardMeta['chestLoot']);
|
$chestItems = LootService::dropOutItem($rewardMeta['chestLoot']);
|
||||||
|
if (count($chestItems)>0){
|
||||||
$event = array(
|
$event = array(
|
||||||
'ID' => 'Box',
|
'ID' => 'Box',
|
||||||
'SUB_ID' => 'drop',
|
'SUB_ID' => 'drop',
|
||||||
@ -298,6 +299,8 @@ class RoomBattleDataService extends BaseService {
|
|||||||
'result' => $chestItems,
|
'result' => $chestItems,
|
||||||
);
|
);
|
||||||
LogService::burialPointEvent($event);
|
LogService::burialPointEvent($event);
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($chestItems as $item){
|
foreach ($chestItems as $item){
|
||||||
array_push($reward,$item);
|
array_push($reward,$item);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user