From ad9ca5656fe2b0af83ca3d3cd6b7cc5511047ba9 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 16 七月 2024 11:35:48 +0800
Subject: [PATCH] 9415 【主干】【港台】【越南】【砍树】【后端】古神战场(C107增加战场分区通知)
---
ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorship.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorship.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorship.py
index 2b8a41d..33a0dbd 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorship.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorship.py
@@ -29,6 +29,7 @@
import random
import time
+import json
# 被膜拜玩家 RecType = ShareDefine.Def_PlayerRecType_WorshipPlayer
def GetWorshipType(recData): return recData.GetValue1() # 膜拜类型
@@ -55,6 +56,7 @@
"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
@@ -268,9 +270,9 @@
## 检查玩家是否可膜拜该对象
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)
@@ -448,7 +450,7 @@
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:
--
Gitblit v1.8.0