| | |
| | | if not nextIpyData:
|
| | | GameWorld.DebugLog("古宝已满星! gubaoID=%s,quality=%s,star=%s" % (gubaoID, quality, star), playerID)
|
| | | return
|
| | | qualityStarCond = nextIpyData.GetQualityStarCond() # 需同品质X个X星
|
| | | needSelfCnt = nextIpyData.GetStarUPNeedSelfCnt()
|
| | | needItemList = nextIpyData.GetStarUPNeedItemList()
|
| | |
|
| | | if qualityStarCond and len(qualityStarCond) == 2:
|
| | | needGBCnt, needGBStar = qualityStarCond
|
| | | condGubaoCnt = 0
|
| | | ipyDataMgr = IpyGameDataPY.IPY_Data()
|
| | | for index in xrange(ipyDataMgr.GetGubaoCount()):
|
| | | gbIpyData = ipyDataMgr.GetGubaoByIndex(index)
|
| | | _, gbStar, _ = GetGubaoInfo(curPlayer, gbIpyData.GetGubaoID())
|
| | | if gbIpyData.GetGubaoQuality() == quality and gbStar >= needGBStar:
|
| | | condGubaoCnt += 1
|
| | | if condGubaoCnt < needGBCnt:
|
| | | GameWorld.DebugLog("古宝升星所需同品质星级古宝数不足! quality=%s,nextStar=%s,condGubaoCnt=%s < %s,needGBStar=%s" |
| | | % (quality, nextStar, condGubaoCnt, needGBCnt, needGBStar), playerID)
|
| | | return
|
| | | |
| | | if needItemList:
|
| | | itemPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptItem)
|
| | | lackItemDict, delInfoDict = ItemCommon.GetCostItemIndexList(needItemList, itemPack)
|