| | |
| | | self.playerName = ""
|
| | | self.playerJob = 0
|
| | | self.playerLV = 0
|
| | | self.face = 0
|
| | | self.facePic = 0
|
| | | self.maxHP = 0
|
| | | self.maxProDef = 0
|
| | | self.fightPower = 0
|
| | |
| | | billboardList = billboardList[:len(syncBillboardList)] # 直接用本服以后的排行数据实例clear后覆盖更新,不足的创建新实例
|
| | | orderDict = {} # 排行信息重新更新
|
| | | for i, syncData in enumerate(syncBillboardList):
|
| | | playerID, playerName, job, fightPower, realmLV, pkScore, danLV, billTime, order = syncData
|
| | | playerID, playerName, job, face, facePic, fightPower, realmLV, pkScore, danLV, billTime, order = syncData
|
| | | if i < len(billboardList):
|
| | | billboardData = billboardList[i]
|
| | | billboardData.clear()
|
| | |
| | | billboardData.PlayerID = playerID
|
| | | billboardData.PlayerName = playerName
|
| | | billboardData.Job = job
|
| | | billboardData.Face = face
|
| | | billboardData.FacePic = facePic
|
| | | billboardData.FightPower = fightPower
|
| | | billboardData.RealmLV = realmLV
|
| | | billboardData.PKScore = pkScore
|
| | |
| | | billboardData.PlayerID = playerID
|
| | | billboardData.PlayerName = pkPlayer.playerName
|
| | | billboardData.Job = pkPlayer.playerJob
|
| | | billboardData.Face = pkPlayer.face
|
| | | billboardData.FacePic = pkPlayer.facePic
|
| | | billboardData.FightPower = pkPlayer.fightPower
|
| | | billboardData.RealmLV = pkPlayer.realmLV
|
| | | billboardData.PKScore = pkPlayer.pkScore
|
| | |
| | | playerID = billboardData.PlayerID
|
| | | playerName = billboardData.PlayerName
|
| | | job = billboardData.Job
|
| | | face = billboardData.Face
|
| | | facePic = billboardData.FacePic
|
| | | fightPower = billboardData.FightPower
|
| | | realmLV = billboardData.RealmLV
|
| | | pkScore = billboardData.PKScore
|
| | | danLV = billboardData.DanLV
|
| | | billTime = billboardData.Time
|
| | | order = orderDict.get(playerID, 0)
|
| | | syncBillboardList.append([playerID, playerName, job, fightPower, realmLV, pkScore, danLV, billTime, order])
|
| | | syncBillboardList.append([playerID, playerName, job, face, facePic, fightPower, realmLV, pkScore, danLV, billTime, order])
|
| | |
|
| | | syncInfo = [zoneID, seasonID, syncBillboardList, exData, isFinalBillboardData]
|
| | | CrossRealmMsg.SendMsgToClientServer(ShareDefine.CrossServerMsg_PKSyncBillboard, syncInfo, serverGroupIDList)
|
| | |
| | | billboardInfoData.PlayerName = billboardData.PlayerName
|
| | | billboardInfoData.NameLen = len(billboardInfoData.PlayerName)
|
| | | billboardInfoData.Job = billboardData.Job
|
| | | billboardInfoData.Face = billboardData.Face
|
| | | billboardInfoData.FacePic = billboardData.FacePic
|
| | | billboardInfoData.FightPower = billboardData.FightPower
|
| | | billboardInfoData.RealmLV = billboardData.RealmLV
|
| | | billboardInfoData.PKScore = billboardData.PKScore
|
| | |
| | | playerID = playerInfoDict["playerID"] # 角色ID
|
| | | playerName = playerInfoDict["playerName"] # 玩家名
|
| | | job = playerInfoDict["playerJob"] # ְҵ
|
| | | face = playerInfoDict["face"]
|
| | | facePic = playerInfoDict["facePic"]
|
| | | playerLV = playerInfoDict["playerLV"] # ְҵ
|
| | | maxHP = playerInfoDict["maxHP"] # ְҵ
|
| | | maxProDef = playerInfoDict["maxProDef"] # 护盾
|
| | |
| | | pkPlayer.playerName = playerName
|
| | | pkPlayer.playerJob = job
|
| | | pkPlayer.playerLV = playerLV
|
| | | pkPlayer.face = face
|
| | | pkPlayer.facePic = facePic
|
| | | pkPlayer.maxHP = maxHP
|
| | | pkPlayer.maxProDef = maxProDef
|
| | | pkPlayer.pkScore = pkScore
|
| | |
| | | pkZoneID = roomPlayer.pkZoneID
|
| | | roomGroupIDList.append(roomPlayer.serverGroupID)
|
| | | readyMemberDict[roomPlayerID] = {"ServerGroupID":roomPlayer.serverGroupID, "Name":roomPlayer.playerName, "Number":num,
|
| | | "Job":roomPlayer.playerJob, "LV":roomPlayer.playerLV, "MaxHP":roomPlayer.maxHP, "MaxProDef":roomPlayer.maxProDef}
|
| | | "Job":roomPlayer.playerJob, "Face":roomPlayer.face, "FacePic":roomPlayer.facePic, "LV":roomPlayer.playerLV, "MaxHP":roomPlayer.maxHP, "MaxProDef":roomPlayer.maxProDef}
|
| | |
|
| | | if not isAllReady:
|
| | | continue
|
| | |
| | | playerID = playerInfoDict["playerID"]
|
| | | playerName = playerInfoDict["playerName"]
|
| | | playerJob = playerInfoDict["playerJob"]
|
| | | face = playerInfoDict.get("face", 0)
|
| | | facePic = playerInfoDict.get("facePic", 0)
|
| | | fightPower = playerInfoDict["fightPower"]
|
| | | realmLV = playerInfoDict["realmLV"]
|
| | | pkScore = playerInfoDict["pkScore"]
|
| | |
| | | pkPlayer.playerID = playerID
|
| | | pkPlayer.playerName = playerName
|
| | | pkPlayer.playerJob = playerJob
|
| | | pkPlayer.face = face
|
| | | pkPlayer.facePic = facePic
|
| | | pkPlayer.pkScore = pkScore
|
| | | pkPlayer.danLV = danLV
|
| | | pkPlayer.fightPower = fightPower
|
| | |
| | | matchPlayer.NameLen = len(matchPlayer.PlayerName)
|
| | | matchPlayer.Job = readyPlayerInfo["Job"]
|
| | | matchPlayer.LV = readyPlayerInfo["LV"]
|
| | | matchPlayer.Face = readyPlayerInfo["Face"]
|
| | | matchPlayer.FacePic = readyPlayerInfo["FacePic"]
|
| | | matchPlayer.MaxHP = readyPlayerInfo["MaxHP"] % ShareDefine.Def_PerPointValue
|
| | | matchPlayer.MaxHPEx = readyPlayerInfo["MaxHP"] / ShareDefine.Def_PerPointValue
|
| | | matchPlayer.MaxProDef = readyPlayerInfo["MaxProDef"]
|