From 7d7da6a8246577a11c38219eaedb451178769ec8 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 14 九月 2018 17:15:52 +0800 Subject: [PATCH] 3494 【后端】开服前14天运营活动定制 3443 【后端】Boss复活活动,时间段支持日期跨天或日期支持重置时间点设置(如0点或5点) 1972 【后端】运营活动支持循环广播 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBossReborn.py | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBossReborn.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBossReborn.py index dc7b415..5e300bb 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBossReborn.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBossReborn.py @@ -66,7 +66,10 @@ if bossRebornID == playerBossRebornID: #GameWorld.DebugLog("BOSS复活活动ID不变,不处理!", curPlayer.GetPlayerID()) return - templateID = actBossRebornInfo.get(ShareDefine.ActKey_TemplateID, 0) + actBossIpyData = IpyGameDataPY.GetIpyGameData("ActBossReborn", actBossRebornInfo.get(ShareDefine.ActKey_CfgID, 0)) + if not actBossIpyData: + return + templateID = actBossIpyData.GetTemplateID() playerTemplateID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_BossRebornTemplateID) GameWorld.DebugLog("BOSS复活重置! costRebateID=%s,playerCostRebateID=%s,state=%s,templateID=%s,playerTemplateID=%s" @@ -209,7 +212,10 @@ state = actBossRebornInfo.get(ShareDefine.ActKey_State, 0) if not state: return - templateID = actBossRebornInfo.get(ShareDefine.ActKey_TemplateID, 0) + actBossIpyData = IpyGameDataPY.GetIpyGameData("ActBossReborn", actBossRebornInfo.get(ShareDefine.ActKey_CfgID, 0)) + if not actBossIpyData: + return + templateID = actBossIpyData.GetTemplateID() if not templateID: return ipyDataList = IpyGameDataPY.GetIpyGameDataByCondition("BossReborn", {'TemplateID':templateID}, True) @@ -217,9 +223,9 @@ return actInfo = ChPyNetSendPack.tagMCBossRebornInfo() actInfo.Clear() - actInfo.StartDate = actBossRebornInfo.get(ShareDefine.ActKey_StartDate, "") - actInfo.EndtDate = actBossRebornInfo.get(ShareDefine.ActKey_EndDate, "") - actInfo.LimitLV = actBossRebornInfo.get(ShareDefine.ActKey_LVLimit, 0) + actInfo.StartDate = actBossIpyData.GetStartDate() + actInfo.EndtDate = actBossIpyData.GetEndDate() + actInfo.LimitLV = actBossIpyData.GetLVLimit() actInfo.TaskInfo = [] for ipyData in ipyDataList: taskInfo = ChPyNetSendPack.tagMCBossRebornTaskInfo() -- Gitblit v1.8.0