This commit is contained in:
hujiabin 2024-07-09 15:59:44 +08:00
parent 954964e4dd
commit d9faafab9f

View File

@ -286,6 +286,7 @@ class RoomBattleDataService extends BaseService {
$rnd = rand(1,100);
if ($rnd <= $rand){
$chestItems = LootService::dropOutItem($rewardMeta['chestLoot']);
if (count($chestItems)>0){
$event = array(
'ID' => 'Box',
'SUB_ID' => 'drop',
@ -298,6 +299,8 @@ class RoomBattleDataService extends BaseService {
'result' => $chestItems,
);
LogService::burialPointEvent($event);
}
foreach ($chestItems as $item){
array_push($reward,$item);
}