From b56df043e01be629f731c5d52ecb64cc7f7f2b60 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期一, 27 五月 2019 20:05:19 +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 | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 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 6b0d69c..dad99c3 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 @@ -7205,18 +7205,18 @@ # @return None <Classlvpluslv classLV="" plusLV="" value="cnt"/> def ConditionType_Classlvpluslv(curPlayer, curMission, curActionNode): classLV = GameWorld.ToIntDef(curActionNode.GetAttribute("classLV"), 0) - if not classLV: - return + classLVList = [classLV] if classLV else xrange(1, IpyGameDataPY.GetFuncCfg('EquipMaxClasslv') + 1) needPlusLV = GameWorld.ToIntDef(curActionNode.GetAttribute("plusLV"), 0) totalCnt = 0 equipPlaceList = ChConfig.Pack_EquipPart_CanPlusStar[IPY_GameWorld.rptEquip] for equipPlace in equipPlaceList: - ipyData = IpyGameDataPY.GetIpyGameData('EquipPlaceIndexMap', classLV, equipPlace) - if not ipyData: - continue - partStarLV = ChEquip.GetEquipPartPlusLV(curPlayer, IPY_GameWorld.rptEquip, ipyData.GetGridIndex()) - if partStarLV >= needPlusLV: - totalCnt += 1 + for classLV in classLVList: + ipyData = IpyGameDataPY.GetIpyGameData('EquipPlaceIndexMap', classLV, equipPlace) + if not ipyData: + continue + partStarLV = ChEquip.GetEquipPartPlusLV(curPlayer, IPY_GameWorld.rptEquip, ipyData.GetGridIndex()) + if partStarLV >= needPlusLV: + totalCnt += 1 return totalCnt >= GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0) ##装备总星级 @@ -7235,10 +7235,10 @@ ##已镶嵌X等级宝石数量 # @param None -# @return None <Equiptotalstone value="cnt" stoneLV=""/> +# @return None <Equipstonecnt value="cnt" stoneLV=""/> def ConditionType_Equipstonecnt(curPlayer, curMission, curActionNode): totalCnt = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0) - stoneLV = GameWorld.ToIntDef(curActionNode.GetAttribute("lv"), 0) + stoneLV = GameWorld.ToIntDef(curActionNode.GetAttribute("stoneLV"), 0) return Operate_EquipStone.GetStoneCntByLV(curPlayer, stoneLV) >= totalCnt ##设置已镶嵌X等级宝石数量 @@ -7246,11 +7246,11 @@ # @param curMission 任务实例 # @param curActionNode节点信息 # @return 返回值无意义 -# @remarks <Set_Equiptotalstone key="" stoneLV="[]"/> -def DoType_Set_Equiptotalstone(curPlayer, curMission, curActionNode): +# @remarks <Set_Equipstonecnt key="" stoneLV="宝石等级"/> +def DoType_Set_Equipstonecnt(curPlayer, curMission, curActionNode): key = curActionNode.GetAttribute("key") questID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0) - stoneLV = GameWorld.ToIntDef(curActionNode.GetAttribute("lv"), 1) + stoneLV = GameWorld.ToIntDef(curActionNode.GetAttribute("stoneLV"), 1) if questID != 0: curMission = curPlayer.FindMission(questID) curMission.SetProperty(key, Operate_EquipStone.GetStoneCntByLV(curPlayer, stoneLV)) -- Gitblit v1.8.0