From 10668d5c705391df124a600de234008e91c6d9ea Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 05 十一月 2018 19:49:23 +0800
Subject: [PATCH] 4574 【后端】【1.2】开服前14天活动定制优化(如果开服前14天的活动配置开始时间在14天之内而结束时间超过第14天,那么该活动不开启)
---
ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Bossall.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Bossall.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Bossall.py
index 8aa769a..952cf26 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Bossall.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Bossall.py
@@ -17,6 +17,7 @@
import PyGameData
import GameWorldBoss
import GameWorld
+import time
## 执行逻辑
# @param curPlayer 当前玩家
@@ -33,6 +34,8 @@
killedTime = 0
PyGameData.g_sortBOSSRefreshList[i] = [bossID, killedTime, refreshTime]
bossIDList.append(bossID)
+ curTime = int(time.time())
+ PyGameData.g_sortBOSSRefreshList.sort(key=lambda asd:max(0, asd[2] - (curTime - asd[1])))
GameWorld.DebugAnswer(curPlayer, "重生boss:%s" % bossIDList)
return
--
Gitblit v1.8.0