From 7109f339bfdac81cf9934b33b952d07eafb2a9ca Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 14 十二月 2025 14:33:09 +0800
Subject: [PATCH] 121 【武将】武将系统-服务端(修复武将遣散返还突破材料报错;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHero.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHero.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHero.py
index 907551c..c46a34c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHero.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHero.py
@@ -1263,13 +1263,13 @@
         qualityBreakIpyData = IpyGameDataPY.GetIpyGameData("HeroQualityBreak", quality, retBreakLV)
         if not qualityBreakIpyData:
             continue
-        costItemInfo = qualityBreakIpyData.GetUPCostItem()
-        if not costItemInfo:
+        costItemList = qualityBreakIpyData.GetUPCostItemList()
+        if not costItemList:
             continue
-        costItemID, costItemCount = costItemInfo
-        costItemCount = max(1, int(costItemCount * ratio / 100.0))
-        returnItemDict[costItemID] = returnItemDict.get(costItemID, 0) + costItemCount
-        returnDict[costItemID] = returnDict.get(costItemID, 0) + costItemCount
+        for costItemID, costItemCount in costItemList:
+            costItemCount = max(1, int(costItemCount * ratio / 100.0))
+            returnItemDict[costItemID] = returnItemDict.get(costItemID, 0) + costItemCount
+            returnDict[costItemID] = returnDict.get(costItemID, 0) + costItemCount
     GameWorld.DebugLog("    突破返还: quality=%s,breakLV=%s,ratio=%s,%s,总%s" % (quality, breakLV, ratio, returnDict, returnItemDict))
     return
 

--
Gitblit v1.8.0