Quellcode durchsuchen

宝箱概率问题

cyzhao vor 10 Monaten
Ursprung
Commit
b34c19785e
1 geänderte Dateien mit 8 neuen und 8 gelöschten Zeilen
  1. 8 8
      Gameserver/App/process/ShopProc.php

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

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