|
@@ -247,18 +247,18 @@ class ShopProc {
|
|
|
$end += $str[1] * 10;
|
|
|
if ($randNum > $start && $randNum <= $end) {
|
|
|
$qual = $str[0];
|
|
|
- if ($qual == 4) {//自己加的控制概率的代码 多个出的紫色宝石 降低概率
|
|
|
- $descRand = mt_rand(1, 100);
|
|
|
- if ($descRand > 40 && $descRand <= 100) {
|
|
|
- $qual = 3;
|
|
|
- }
|
|
|
- }
|
|
|
- if ($qual == 5) {//自己加的控制概率的代码 多个出的金色宝石 降低概率
|
|
|
- $descRand = mt_rand(1, 100);
|
|
|
- if ($descRand > 40 && $descRand <= 100) {
|
|
|
- $qual = 4;
|
|
|
- }
|
|
|
- }
|
|
|
+// if ($qual == 4) {//自己加的控制概率的代码 多个出的紫色宝石 降低概率
|
|
|
+// $descRand = mt_rand(1, 100);
|
|
|
+// if ($descRand > 40 && $descRand <= 100) {
|
|
|
+// $qual = 3;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// if ($qual == 5) {//自己加的控制概率的代码 多个出的金色宝石 降低概率
|
|
|
+// $descRand = mt_rand(1, 100);
|
|
|
+// if ($descRand > 40 && $descRand <= 100) {
|
|
|
+// $qual = 4;
|
|
|
+// }
|
|
|
+// }
|
|
|
// if ($qual == 6) {//自己加的控制概率的代码 多个出的金色宝石 降低概率
|
|
|
// $descRand = mt_rand(1, 100);
|
|
|
// if ($descRand > 8 && $descRand <= 100) {
|