| | |
| | |
|
| | | def __GetEndAward(curPlayer, fbLevel):
|
| | | #结算奖励
|
| | | giveItemCountRateList = IpyGameDataPY.GetFuncEvalCfg('RuneAwardCntRate')
|
| | | giveItemCountRateList = GameWorld.GetDictValueByRangeKey(IpyGameDataPY.GetFuncEvalCfg('RuneAwardCntRate', 1, {}), fbLevel, [])
|
| | | giveItemCount = GameWorld.GetResultByRandomList(giveItemCountRateList)
|
| | | if not giveItemCount:
|
| | | return []
|
| | |
| | | InitRuneTypeColorInfo(curPlayer)
|
| | |
|
| | | giveItemList = []
|
| | | runeColorRateDict = IpyGameDataPY.GetFuncEvalCfg('RuneAwardColor')
|
| | | runeColorRateDict = GameWorld.GetDictValueByRangeKey(IpyGameDataPY.GetFuncEvalCfg('RuneAwardColor', 1, {}), fbLevel, {})
|
| | | for _ in xrange(giveItemCount):
|
| | | giveRuneType = random.choice(runeTypeList)
|
| | |
|
| | |
| | | giveRuneYsogDict = {}
|
| | | giveRunePoint = 0
|
| | | giveRuneYsog = 0
|
| | | giveItemCountRateList = IpyGameDataPY.GetFuncEvalCfg('RuneAwardCntRate', 2)
|
| | | runeColorRateDict = IpyGameDataPY.GetFuncEvalCfg('RuneAwardColor')
|
| | | |
| | | |
| | | ipyDataMgr = IpyGameDataPY.IPY_Data()
|
| | | for i in xrange(ipyDataMgr.GetRuneTowerCount()):
|
| | | ipyData = ipyDataMgr.GetRuneTowerByIndex(i)
|
| | |
| | | giveRunePoint += ipyData.GetSweepRunePoint()
|
| | | giveRuneYsogDict[floor] = giveRuneYsogDict.get(floor, 0) + ipyData.GetSweepYsog()
|
| | | giveRuneYsog += ipyData.GetSweepYsog()
|
| | | |
| | | giveItemCountRateList = GameWorld.GetDictValueByRangeKey(IpyGameDataPY.GetFuncEvalCfg('RuneAwardCntRate', 2, {}), towerLV, [])
|
| | | giveItemCount = GameWorld.GetResultByRandomList(giveItemCountRateList)
|
| | | if not giveItemCount:
|
| | | continue
|
| | | runeTypeList = GetRuneTypeByTowerLV(towerLV)
|
| | | if not runeTypeList:
|
| | | continue
|
| | | |
| | | runeColorRateDict = GameWorld.GetDictValueByRangeKey(IpyGameDataPY.GetFuncEvalCfg('RuneAwardColor', 2, {}), towerLV, {})
|
| | | for _ in xrange(giveItemCount):
|
| | | giveRuneType = random.choice(runeTypeList)
|
| | |
|