From c2b7d3e0d2fa9e4cd837050e184b1a07f4f68dcb Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 19 六月 2019 21:29:22 +0800
Subject: [PATCH] 6603 【后端】【2.0】增加新版的sp和被动技能 - 延长时间
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddFairyEvent.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddFairyEvent.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddFairyEvent.py
index c3b75c3..366af91 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddFairyEvent.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddFairyEvent.py
@@ -36,9 +36,12 @@
if not msgList:
GameWorld.DebugAnswer(curPlayer, "AddFairyEvent 事件ID")
return
- fdEventIDList = msgList
+ maxEventCnt = PlayerFairyDomain.GetMaxEventCnt() # 最大可出现事件个数
+ if len(msgList) > maxEventCnt:
+ GameWorld.DebugAnswer(curPlayer, "最大事件数量 %s"%maxEventCnt)
+ fdEventIDList = msgList[:maxEventCnt]
openServerDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1
- maxEventCnt = PlayerFairyDomain.GetMaxEventCnt() #最大可出现事件个数
+
for i in xrange(maxEventCnt):
prefdEventID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FairyDomainEventID % i)
if prefdEventID:
--
Gitblit v1.8.0