From f5d557cc9d0f2911e60dfd10605b5613adaa1785 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 12 二月 2020 15:29:55 +0800 Subject: [PATCH] 8377 新增任务接口(修改活跃放置状态判断接口) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py index e27aa3c..fed877d 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py @@ -7403,11 +7403,20 @@ value = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0) return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Activity_TotalPoint, 0) >= value -##活跃放置判断可否领奖 +##活跃放置状态判断 # @param None -# @return None <Check_Activityplacereward /> -def ConditionType_Check_Activityplacereward(curPlayer, curMission, curActionNode): - return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ActivityPlaceRewardCount) > 0 +# @return None <Check_Activityplace state="状态0-未启动,1-可启动,2-进行中,3-可领奖"/> +def ConditionType_Check_Activityplace(curPlayer, curMission, curActionNode): + state = GameWorld.ToIntDef(curActionNode.GetAttribute("state"), 0) + if curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ActivityPlaceRewardCount) > 0: + return state == 3 + if curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ActivityPlaceRemainCount) > 0: + return state == 2 + curPoint = PlayerActivity.__GetPDictValue(curPlayer, ChConfig.Def_PDict_ActivityCanCostTotalPoint) + costPoint = IpyGameDataPY.GetFuncCfg("ActivityPlace", 2) # 单次放置消耗的活跃点数 + if curPoint >= costPoint: + return state == 1 + return state == 0 ##设置当前货币类型对应值 # @param curPlayer 玩家实例 -- Gitblit v1.8.0