| | |
| | | import IpyGameDataPY
|
| | | import NetPackCommon
|
| | | import PlayerOnline
|
| | | import PlayerHJG
|
| | | import ChConfig
|
| | |
|
| | | import math
|
| | |
|
| | | # 自动选择排序优先级索引
|
| | | (
|
| | |
| | | awardIpyData = quickIpyData
|
| | | if not awardIpyData:
|
| | | return
|
| | | awardItemList = awardIpyData.GetQuickAwardList()
|
| | | quickAwardList = awardIpyData.GetQuickAwardList()
|
| | |
|
| | | # 设置起始层关卡
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_DJGLineID, todayLineID)
|
| | |
| | | GivePassLayerEff(curPlayer, addEffCnt)
|
| | | SyncDingjungeInfo(curPlayer)
|
| | |
|
| | | awardItemList = []
|
| | | isBind = ItemControler.GetIsBindValue(srcSign=ChConfig.ItemSrcSign_TitleEff)
|
| | | djgPer = PlayerHJG.GetTitleEffInfo(curPlayer, PlayerHJG.TitleEff_DingjungeQuickPer)[0]
|
| | | for itemID, itemCount in quickAwardList:
|
| | | awardItemList.append([itemID, itemCount])
|
| | | if djgPer:
|
| | | itemCountEx = int(math.ceil(itemCount * djgPer / 100.0))
|
| | | awardItemList.append([itemID, itemCountEx, isBind])
|
| | | ItemControler.GivePlayerItemOrMail(curPlayer, awardItemList, event=["Dingjunge", False, {}])
|
| | | return
|
| | |
|