From 8d824368fd3d1d358c166ad23dbda95bc9ab4454 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 04 九月 2024 11:41:46 +0800
Subject: [PATCH] 10258 【越南】【砍树】新增古宝特殊效果(增加法器每X阶+xx属性)
---
ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorship.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorship.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorship.py
index 2b8a41d..433b35b 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
@@ -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