1
This commit is contained in:
parent
3b2a2fda02
commit
fb47b4a469
@ -225,16 +225,16 @@ class RoomBattleDataService extends BaseService {
|
||||
}
|
||||
|
||||
//宝箱掉落
|
||||
$rand = $rewardMeta['chestLootProb'] * 100;
|
||||
$rnd = rand(1,100);
|
||||
if ($rnd <= $rand){
|
||||
$chestItems = LootService::dropOutItem($rewardMeta['chestLoot']);
|
||||
foreach ($chestItems as $item){
|
||||
array_push($reward,$item);
|
||||
if ($rewardMeta['chestLootProb'] > 0){
|
||||
$rand = $rewardMeta['chestLootProb'] * 100;
|
||||
$rnd = rand(1,100);
|
||||
if ($rnd <= $rand){
|
||||
$chestItems = LootService::dropOutItem($rewardMeta['chestLoot']);
|
||||
foreach ($chestItems as $item){
|
||||
array_push($reward,$item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user