| | |
| | |
|
| | | import random
|
| | | import time
|
| | | import json
|
| | |
|
| | | # 被膜拜玩家 RecType = ShareDefine.Def_PlayerRecType_WorshipPlayer
|
| | | def GetWorshipType(recData): return recData.GetValue1() # 膜拜类型
|
| | |
| | | ## 检查玩家是否可膜拜该对象
|
| | | 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(" ", "").replace("\'", "\"")
|
| | | infoPack.PlayerInfo = json.dumps(modelShow, ensure_ascii=False).replace(" ", "")
|
| | | infoPack.InfoLen = len(infoPack.PlayerInfo)
|
| | |
|
| | | if curPlayer:
|