Selaa lähdekoodia

宝箱概率屏蔽

cyzhao 10 kuukautta sitten
vanhempi
commit
22d0c78fce
1 muutettua tiedostoa jossa 12 lisäystä ja 12 poistoa
  1. 12 12
      Gameserver/App/process/ShopProc.php

+ 12 - 12
Gameserver/App/process/ShopProc.php

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