From ceb2cdf78faf09d07b41b61abd1773aa9ff1f534 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 25 一月 2021 15:53:45 +0800 Subject: [PATCH] 8710 【开发】【主干】【BT2】根据世界等级配置奖励(每日礼包奖励支持按世界等级配置); --- ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py index 0ef4888..58e0646 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldActionControl.py @@ -582,6 +582,7 @@ if not isReload and preState == state: #已经是这个状态了 continue + GameWorld.Log("运营活动变更: actName=%s,preState=%s,state=%s,dictName=%s" % (actName, preState, state, dictName)) #更新字典值 gameWorld.SetDict(dictName, state) sendMapServerMsgDict = mapServerInfoDict.get(actName, {}) @@ -590,11 +591,13 @@ curActID = sendMapServerMsgDict.get(ShareDefine.ActKey_ID) dayIndex = sendMapServerMsgDict.get(ShareDefine.ActKey_DayIndex, 0) if curActID and PlayerDBGSEvent.GetDBGSTrig_ByKey(dbOperationActIDKey) != curActID: + GameWorld.Log(" dbActID变更,dbActID=%s,curActID=%s" % (PlayerDBGSEvent.GetDBGSTrig_ByKey(dbOperationActIDKey), curActID)) PlayerDBGSEvent.SetDBGSTrig_ByKey(dbOperationActIDKey, curActID) if actName in ShareDefine.NeedWorldLVOperationActNameList: #记录开启时世界等级 worldLV = PlayerDBGSEvent.GetDBGSTrig_ByKey(ShareDefine.Def_Notify_WorldKey_WorldAverageLv) PlayerDBGSEvent.SetDBGSTrig_ByKey(PlayerDBGSEvent.Def_OActWorldLV % actName, worldLV) + GameWorld.Log(" 记录活动开启时世界等级: worldLV=%s" % (worldLV)) #此处为活动开启时 if actName == ShareDefine.OperationActionName_BossReborn: @@ -614,11 +617,14 @@ #限时抢购重置购买次数 本次活动每场不能重复 #dayIndex = sendMapServerMsgDict.get(ShareDefine.ActKey_DayIndex, 0) PlayerStore.ResetFlashSaleBuyCnt(ipyData) - + else: + GameWorld.Log(" dbActID不变或无活动: dbActID=%s,curActID=%s" % (PlayerDBGSEvent.GetDBGSTrig_ByKey(dbOperationActIDKey), curActID)) + if actName in ShareDefine.NeedWorldLVOperationActNameList: actWorldLV = PlayerDBGSEvent.GetDBGSTrig_ByKey(PlayerDBGSEvent.Def_OActWorldLV % actName) sendMapServerMsgDict[ShareDefine.ActKey_WorldLV] = actWorldLV - + GameWorld.Log(" 活动开始时世界等级: actWorldLV=%s" % (actWorldLV)) + if actName == ShareDefine.OperationActionName_ExpRate: if isReload and ipyData: Sync_OperationAction_ExpRate(ipyData) @@ -654,7 +660,7 @@ sendMapServerMsgDict[ShareDefine.ActKey_State] = state GameWorld.SendMapServerMsgEx(ShareDefine.Def_Notify_WorldKey_OperationActionInfo % actName, sendMapServerMsgDict) - GameWorld.Log("运营活动变更: actName=%s,preState=%s,state=%s,dictName=%s, %s" % (actName, preState, state, dictName, sendMapServerMsgDict)) + GameWorld.Log(" sendMapServerMsgDict: %s" % (sendMapServerMsgDict)) return def Sync_OperationAction_ExpRate(ipyData, curPlayer=None): -- Gitblit v1.8.0