| | |
| | | import PlayerControl
|
| | | import PyDataManager
|
| | | import NetPackCommon
|
| | | import GameXiangong
|
| | | import GameWorship
|
| | | import PyGameData
|
| | | import ChConfig
|
| | |
| | | GameWorld.Log("pkZoneIDList=%s" % pkZoneIDList)
|
| | |
|
| | | worshipList = []
|
| | | syncNewXiangongDict = {}
|
| | | for zoneID in pkZoneIDList:
|
| | | GameWorld.Log("=== 结算排位分区: zoneID=%s ===" % zoneID, zoneID)
|
| | | finalPlayerIDList = []
|
| | |
| | | rankIpyData = IpyGameDataPY.GetIpyGameData("ChampionshipRank", rank)
|
| | | officialID = rankIpyData.GetMainOfficialID() if rankIpyData else 0
|
| | | rankAwardItemList = rankIpyData.GetRankAwardItemList() if rankIpyData else []
|
| | | GameWorld.Log(" 最终排名: zoneID=%s,rank=%s,playerID=%s,officialID=%s,rankAwardItemList=%s,accID=%s,fightPower=%s" |
| | | % (zoneID, rank, playerID, officialID, rankAwardItemList, accID, fightPower), zoneID)
|
| | | xiangongID = rankIpyData.GetXiangongID() if rankIpyData else 0
|
| | | GameWorld.Log(" 最终排名: zoneID=%s,rank=%s,playerID=%s,officialID=%s,xiangongID=%s,rankAwardItemList=%s,accID=%s,fightPower=%s" |
| | | % (zoneID, rank, playerID, officialID, xiangongID, rankAwardItemList, accID, fightPower), zoneID)
|
| | |
|
| | | if officialID:
|
| | | offObj = ChampionshipOfficial()
|
| | |
| | | paramList = [rank]
|
| | | PlayerCompensation.SendMailByKey("CrossChampionshipPKRank", [playerID], rankAwardItemList, paramList, crossMail=True)
|
| | |
|
| | | if xiangongID:
|
| | | crossZoneName = GameWorld.GetCrossZoneName()
|
| | | zoneIpyData = IpyGameDataPY.GetIpyGameData("CrossZonePK", crossZoneName, zoneID)
|
| | | serverIDRangeList = zoneIpyData.GetServerGroupIDList() if zoneIpyData else []
|
| | | GameXiangong.AddXiangongPlayer(xiangongID, playerID, serverIDRangeList, rank, syncNewXiangongDict)
|
| | | |
| | | # 处理4强竞猜发奖励
|
| | | guessType = 4
|
| | | moneyType = ShareDefine.TYPE_Price_GongdePoint
|
| | |
| | |
|
| | | # 通知新添加的膜拜
|
| | | GameWorship.SyncAddCrossWorship(worshipList)
|
| | | GameXiangong.SendNewXiangongPlayerToClientServer(syncNewXiangongDict)
|
| | | GameWorld.Log("===================================================================")
|
| | | return
|
| | |
|