| | |
| | |
|
| | | import random
|
| | | import time
|
| | | import json
|
| | |
|
| | | # 被膜拜玩家 RecType = ShareDefine.Def_PlayerRecType_WorshipPlayer
|
| | | def GetWorshipType(recData): return recData.GetValue1() # 膜拜类型
|
| | |
| | | "VIPLV":cacheDict.get("VIPLV", 0),
|
| | | "TitleID":cacheDict.get("TitleID", 0),
|
| | | "FightPower":cacheDict.get("FightPower", 0),
|
| | | "EquipShowSwitch":cacheDict.get("EquipShowSwitch", 0),
|
| | | "EquipShowID":cacheDict.get("EquipShowID", []),
|
| | | }
|
| | | return modelShow
|
| | |
| | | ## 检查玩家是否可膜拜该对象
|
| | | playerID = curPlayer.GetPlayerID()
|
| | | recPlayerID = recData.GetPlayerID()
|
| | | if playerID == recPlayerID:
|
| | | GameWorld.DebugLog("不能膜拜自己!", playerID)
|
| | | return
|
| | | #if playerID == recPlayerID:
|
| | | # GameWorld.DebugLog("不能膜拜自己!", playerID)
|
| | | # return
|
| | | modelShow = GetModelShowInfo(recData)
|
| | | if not modelShow:
|
| | | GameWorld.DebugLog("没有外观展示的不同步! recPlayerID=%s" % recPlayerID, playerID)
|
| | |
| | | infoPack.PlayerID = recPlayerID
|
| | | infoPack.WorshipType = GetWorshipType(recData)
|
| | | infoPack.WorshipValue = GetWorshipValue(recData)
|
| | | infoPack.PlayerInfo = str(modelShow).replace(" ", "")
|
| | | infoPack.PlayerInfo = json.dumps(modelShow, ensure_ascii=False).replace(" ", "")
|
| | | infoPack.InfoLen = len(infoPack.PlayerInfo)
|
| | |
|
| | | if curPlayer:
|