From b1e6ff14aa3d6afb07510ab535a369c7527f4a8a Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 27 十一月 2018 21:40:17 +0800 Subject: [PATCH] 4762 【后端】增加仙缘币为0时的原因同步; --- ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py index bd14280..70ac533 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py @@ -49,8 +49,6 @@ import time #--------------------------------------------------------------------- -MaxCustomServerDay = 14 # 最大定制开服天数 - #年月日时间格式 Time_YmdFormat = ChConfig.TYPE_Time_YmdFormat @@ -128,7 +126,7 @@ curDateTimeStr = "%d-%d-%d %02d:%02d:00" % (serverTime.year, serverTime.month, serverTime.day, serverTime.hour, serverTime.minute) curDateTime = datetime.datetime.strptime(curDateTimeStr, ChConfig.TYPE_Time_Format) - customMaxServerDay = MaxCustomServerDay # 定制运营活动最大开服天 + customMaxServerDay = IpyGameDataPY.GetFuncCfg("OperationAction", 1) # 定制运营活动最大开服天 operationActionDict = {} mapServerOperationActionDict = {} serverID = GameWorld.GetServerID() @@ -541,6 +539,7 @@ multiRealmPointInfo.EndtDate = GameWorld.GetOperationActionDateStr(ipyData.GetEndDate(), openServerDay) multiRealmPointInfo.Multiple = ipyData.GetMultiple() multiRealmPointInfo.LimitLV = ipyData.GetLVLimit() + multiRealmPointInfo.LimitPoint = ipyData.GetPointLimit() if not curPlayer: # 全服广播在线玩家 playerManager = GameWorld.GetPlayerManager() @@ -573,7 +572,7 @@ curDateStr = GameWorld.ChangeTimeNumToStr(curTime, ChConfig.TYPE_Time_YmdFormat) # 当天日期 openServerWeekday = GameWorldProcess.GetOpenServerWeekday() # 服务器开服时是星期几 - curMaxCustomServerDay = MaxCustomServerDay - openServerWeekday + 1 # 最大有效定制开服天 + curMaxCustomServerDay = IpyGameDataPY.GetFuncCfg("OperationAction", 1) - openServerWeekday + 1 # 最大有效定制开服天 GameWorld.Log("===== 加载今天日常活动信息 =====") GameWorld.Log(" 开服是星期%s, 开服第%s天, 当前星期%s" % (openServerWeekday, openServerDay, weekDay)) GameWorld.Log(" 最大有效定制开服天: %s" % (curMaxCustomServerDay)) @@ -825,7 +824,7 @@ GameWorld.ErrLog("获取开服是星期几数据错误!openServerWeekday=%s" % openServerWeekday) return [] - curMaxCustomServerDay = MaxCustomServerDay - openServerWeekday + 1 # 最大有效定制开服天 + curMaxCustomServerDay = IpyGameDataPY.GetFuncCfg("OperationAction", 1) - openServerWeekday + 1 # 最大有效定制开服天 GameWorld.Log("===== 加载今天副本状态时间表 =====") GameWorld.Log(" 开服是星期%s, 开服第%s天, 当前星期%s,%s点%s分 !" % (openServerWeekday, openServerDay, curWeekDay, curHour, curMinute)) GameWorld.Log(" 最大有效定制开服天: %s" % (curMaxCustomServerDay)) -- Gitblit v1.8.0