| | |
| | | % (highestLineID, passLayerMax, quickStartLayer, todayLineID), playerID)
|
| | |
|
| | | # 快速过关奖励按历史最大过关层级领取
|
| | | awardItemDict = {}
|
| | | awardIpyData = None
|
| | | ipyDataMgr = IpyGameDataPY.IPY_Data()
|
| | | for index in range(ipyDataMgr.GetFBDJGQuickCount()):
|
| | | quickIpyData = ipyDataMgr.GetFBDJGQuickByIndex(index)
|
| | | needLayer = quickIpyData.GetNeedLayer()
|
| | | if needLayer > passLayerMax:
|
| | | break
|
| | | quickItemList = quickIpyData.GetQuickAwardList()
|
| | | for itemInfo in quickItemList:
|
| | | itemID, itemCount = itemInfo[:2]
|
| | | awardItemDict[itemID] = awardItemDict.get(itemID, 0) + itemCount
|
| | | awardItemList = [[itemID, itemCount] for itemID, itemCount in awardItemDict.items()]
|
| | | awardIpyData = quickIpyData
|
| | | if not awardIpyData:
|
| | | return
|
| | | awardItemList = awardIpyData.GetQuickAwardList()
|
| | |
|
| | | # 设置起始层关卡
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_DJGLineID, todayLineID)
|