From b49ad3d0dca73df86fcfeb276e5b45567c71e1ed Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 14 五月 2019 19:43:01 +0800 Subject: [PATCH] 6778 【后端】【2.0】任务接口开发(技能专精升级改为指定专精类型,判断专精技能个数及设置专精技能个数增加支持指定专精类型) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py | 10 ++++++---- 1 files changed, 6 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 947d3a0..62ce360 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 @@ -7094,20 +7094,21 @@ ##某主技能对应专精技能达到激活X等级的数量是否达到 # @param None -# @return None <Elementskillcnt value="cnt" mainskill="[]" activelv=""/> +# @return None <Elementskillcnt value="cnt" mainskill="[]" activelv="" elementtype="专精类型"/> def ConditionType_Elementskillcnt(curPlayer, curMission, curActionNode): cnt = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0) mainskill = curActionNode.GetAttribute("mainskill") mainSkillIDList = eval(mainskill) if mainskill else [] activeLV = GameWorld.ToIntDef(curActionNode.GetAttribute("activelv"), 1) - return SkillShell.GetElementSkillCnt(curPlayer, mainSkillIDList, activeLV) >= cnt + elementType = GameWorld.ToIntDef(curActionNode.GetAttribute("elementtype"), 0) + return SkillShell.GetElementSkillCnt(curPlayer, mainSkillIDList, activeLV, elementType) >= cnt ##设置已选择的专精技能数量 # @param curPlayer 玩家实例 # @param curMission 任务实例 # @param curActionNode节点信息 # @return 返回值无意义 -# @remarks <Set_Elementskillcnt key="" mainskill="[]" activelv=""/> +# @remarks <Set_Elementskillcnt key="" mainskill="[]" activelv="" elementtype="专精类型"/> def DoType_Set_Elementskillcnt(curPlayer, curMission, curActionNode): key = curActionNode.GetAttribute("key") questID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0) @@ -7116,7 +7117,8 @@ activeLV = GameWorld.ToIntDef(curActionNode.GetAttribute("activelv"), 1) if questID != 0: curMission = curPlayer.FindMission(questID) - curMission.SetProperty(key, SkillShell.GetElementSkillCnt(curPlayer, mainSkillIDList, activeLV)) + elementType = GameWorld.ToIntDef(curActionNode.GetAttribute("elementtype"), 0) + curMission.SetProperty(key, SkillShell.GetElementSkillCnt(curPlayer, mainSkillIDList, activeLV, elementType)) return ##设置符合条件的已穿基础装备数量 -- Gitblit v1.8.0