From 3ea80a39cf950e4dd7f65f44b3487b6787f45f4a Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期二, 14 五月 2019 20:46:11 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode --- 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