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