| | |
| | | import NetPackCommon
|
| | | import ItemControler
|
| | | import PlayerCoin
|
| | | import PlayerMail
|
| | | import GameWorld
|
| | | import ChConfig
|
| | |
|
| | |
| | | return
|
| | | GameWorld.Log("处理补发轮回奖励完毕: actNum=%s,roundType=%s,roundMax=%s,curRound=%s,curValue=%s,awardState=%s,mailItemList=%s"
|
| | | % (actNum, roundType, roundMax, curRound, curValue, awardState, mailItemList), playerID)
|
| | | PlayerControl.SendMailByKey("LunhuidianUnget", [playerID], mailItemList)
|
| | | PlayerMail.SendMailByKey("LunhuidianUnget", playerID, mailItemList)
|
| | | return
|
| | |
|
| | | def GetRoundSetValue(roundSet, setIndex): return roundSet[setIndex] if len(roundSet) > setIndex else 0
|
| | |
| | | award = ChPyNetSendPack.tagMCActLunhuidianAward()
|
| | | award.AwardIndex = awardIpyData.GetAwardIndex()
|
| | | award.NeedValue = awardIpyData.GetNeedValue()
|
| | | for itemID, itemCount, isAuctionItem in awardIpyData.GetAwardItemList():
|
| | | for itemInfo in awardIpyData.GetAwardItemList():
|
| | | itemID, itemCount = itemInfo[:2]
|
| | | isAuctionItem = itemInfo[2] if len(itemInfo) > 2 else 0
|
| | | item = ChPyNetSendPack.tagMCActLunhuidianItem()
|
| | | item.ItemID = itemID
|
| | | item.ItemCount = itemCount
|