From 8a7181b35a5f4063fb84fcb3120394faeaba2f77 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 07 十二月 2020 19:19:50 +0800
Subject: [PATCH] 8585 【港台】【BT】【长尾】【后端】竞技场(初版)

---
 ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
index ae54f4e..44f3767 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
@@ -15,7 +15,6 @@
 # @change: "2013-03-20 18:00" Alee 添加DEBUG输出函数DebugLog
 # @change: "2013-09-10 20:10" Alee 函数DebugLog改用GetDebugLevel才有效
 # @change: "2014-05-16 10:30" xmnathan 增加交易所管理器接口
-# @change: "2014-08-01 15:30" xmnathan 增加天梯竞技场管理器接口
 # @change: "2014-09-22 10:00" xmnathan 增加GM工具补偿管理器接口
 # @change: "2015-01-14 00:30" hxp 增加服务器平台区服ID获取
 # @change: "2015-01-14 20:30" hxp 增加CanHappen函数
@@ -916,8 +915,9 @@
 #  @param itemList 待选列表
 #  @return object
 def GetResultByRandomList(randList, defValue=None, maxRateValue=ChConfig.Def_MaxRateValue):
-    rate = random.randint(0, maxRateValue)
-    
+    if not randList:
+        return defValue
+    rate = random.randint(0, randList[-1][0])
     return GetResultByRiseList(randList, rate, defValue)
 
 ## 增长列表(类似饼图)从中获得指定的信息

--
Gitblit v1.8.0