From 585f6a26f7059bf0d2da81f716ae6be772ecfb0b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 17 三月 2026 11:22:37 +0800
Subject: [PATCH] 404 新增 改名卡(非首次改名时优先消耗改名卡,不足时消耗原配置货币消耗;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBeauty.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBeauty.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBeauty.py
index 31a2aeb..d1a3b4f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBeauty.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBeauty.py
@@ -590,14 +590,13 @@
     # 保存计算值
     GameWorld.DebugLog("红颜属性: %s" % attrDict, playerID)
     GameWorld.DebugLog("红颜效果: %s" % effTypeDict, playerID)
-    PyGameData.g_beautyEffTypeDict[playerID] = effTypeDict
-    PlayerOnline.GetOnlinePlayer(curPlayer).SetCalcAttr(ChConfig.Def_CalcAttr_Beauty, attrDict)
+    PlayerOnline.GetOnlinePlayer(curPlayer).SetCalcAttr(ChConfig.Def_CalcAttr_Beauty, attrDict, effTypeDict)
     return
 
 def GetBeautyEffInfo(curPlayer, effType):
     ## 获取红颜特殊效果信息
     # @return: effValue, effTypeValue
-    effTypeDict = PyGameData.g_beautyEffTypeDict.get(curPlayer.GetPlayerID(), {})
+    effTypeDict = PlayerOnline.GetOnlinePlayer(curPlayer).GetCalcSpecInfo(ChConfig.Def_CalcAttr_Beauty)
     return effTypeDict.get(effType, [0, 0])
 
 def SyncBeautyInfo(curPlayer, beautyIDList=None, skinIDList=None):

--
Gitblit v1.8.0