| | |
| | | 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
|
| | |
|