Browse Source

宝箱概率调整

cyzhao 1 year ago
parent
commit
a46bba0fac

+ 1 - 1
Gameserver/App/model/Const/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-04-18 16:26:13
+ // 日期: 2024-04-19 15:46:08
 ////////////////////
 
 /**

+ 1 - 1
Gameserver/App/model/Const/sm_hero.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-04-18 15:32:47
+ // 日期: 2024-04-18 16:32:47
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_plots.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-04-18 09:02:47
+ // 日期: 2024-04-19 15:31:10
 ////////////////////
 
 

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

@@ -158,14 +158,14 @@ class ShopProc {
                     $buyNum = 1;
                 }
                 
-                $perList = explode(';',$mo->percent); 
+                $perList = explode(';',$mo->percent);                
                 $allNum = 0;
                 foreach ($perList as $key => $value) {
                     $str = explode(',', $value);
                     $allNum += $str[1];
                 }
                 
-                $allNum *= 1000;                    
+                $allNum *= 10;                    
                 for ($i = 0; $i < $buyNum; $i++) {                   
                     $buyCount = 0;
                     if($mo->type == 1){
@@ -194,7 +194,7 @@ class ShopProc {
                         $randNum = rand (1,$allNum);                       
                         foreach ($perList as $k => $val) {
                             $str = explode(',', $val);
-                            $end += $str[1]*1000;
+                            $end += $str[1]*10;
                             if($randNum > $start && $randNum <= $end){
                                 $qual = $str[0];
                                 break;