This commit is contained in:
hujiabin 2024-04-29 14:45:09 +08:00
parent 3b2a2fda02
commit fb47b4a469

View File

@ -225,6 +225,7 @@ class RoomBattleDataService extends BaseService {
}
//宝箱掉落
if ($rewardMeta['chestLootProb'] > 0){
$rand = $rewardMeta['chestLootProb'] * 100;
$rnd = rand(1,100);
if ($rnd <= $rand){
@ -233,8 +234,7 @@ class RoomBattleDataService extends BaseService {
array_push($reward,$item);
}
}
}
}
}