From 2b4dfd76d2eb06a1040aab74e22eaa3acdb1f2cb Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 11 二月 2025 14:56:44 +0800
Subject: [PATCH] 1111 【越南】【英语】【BT】【砍树】增加任务判断X阶装备强化是否全部满级;
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 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 65fa532..fd54448 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
@@ -7297,6 +7297,39 @@
totalCnt += 1
return totalCnt >= GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
+##判断X阶装备强化是否满级
+# @param None
+# @return None <Classlvplusmax classLV="" cnt="件数没填默认全部件数"/>
+def ConditionType_Classlvplusmax(curPlayer, curMission, curActionNode):
+ classLV = GameWorld.ToIntDef(curActionNode.GetAttribute("classLV"), 0)
+ needCnt = GameWorld.ToIntDef(curActionNode.GetAttribute("cnt"), 0)
+ equipPlaceList = ChConfig.Pack_EquipPart_CanPlusStar[IPY_GameWorld.rptEquip]
+ if not needCnt:
+ needCnt = len(equipPlaceList)
+
+ totalCnt = 0
+ equipPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
+ for equipPlace in equipPlaceList:
+ ipyData = IpyGameDataPY.GetIpyGameData('EquipPlaceIndexMap', classLV, equipPlace)
+ if not ipyData:
+ continue
+ index = ipyData.GetGridIndex()
+ curEquip = equipPack.GetAt(index)
+ if ItemCommon.CheckItemCanUse(curEquip):
+ continue
+ findType = ChEquip.GetEquipPlusType(curEquip)
+ if not findType:
+ continue
+ plusMaxIpyData = IpyGameDataPY.GetIpyGameData("ItemPlusMax", findType, classLV)
+ if not plusMaxIpyData:
+ continue
+ plusLVMax = plusMaxIpyData.GetPlusLVMax()
+ partStarLV = ChEquip.GetEquipPartPlusLV(curPlayer, IPY_GameWorld.rptEquip, index)
+ if partStarLV >= plusLVMax:
+ totalCnt += 1
+
+ return totalCnt >= needCnt
+
##装备总星级
# @param None
# @return None <Equiptotalstar value="cnt"/>
--
Gitblit v1.8.0