121 【武将】武将系统-服务端(修复武将遣散返还突破材料报错;)
| | |
| | | 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
|
| | | 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
|