From 8fdbcd8a336364f9d31215a35f935ef40a685ebe Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 05 三月 2025 14:55:02 +0800 Subject: [PATCH] 10413 【英文】【BT】【砍树】活动开服天新方案(支持以格式:K+开服天的配置方案,如K15代表开服第15天) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py index 8b05e36..8de3a0d 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py @@ -696,6 +696,12 @@ startDateTime = curDateTime + datetime.timedelta(days=(int(startDateStr)-diffDay)) endDateTime = curDateTime + datetime.timedelta(days=(int(endDateStr)-diffDay)) + # K开服天 + elif startDateStr.startswith("K"): + diffDay = GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1 + startDateTime = curDateTime + datetime.timedelta(days=(ToIntDef(startDateStr[1:])-diffDay)) + endDateTime = curDateTime + datetime.timedelta(days=(ToIntDef(endDateStr[1:])-diffDay)) + # 合服天 elif startDateStr.startswith("Mix"): diffDay = GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_MixServerDay) + 1 -- Gitblit v1.8.0