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