From 22bb99e929439653669b8b2e14325dcc865c7fe3 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 17 十月 2025 16:05:08 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(快速加入公会失败提示)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
index 136bccd..1d30c2c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
@@ -28,8 +28,8 @@
import PlayerSuccess
import PlayerBillboard
import PlayerTongTianLing
-import PlayerGubao
import PlayerTask
+import PlayerOnline
#------------------------------------------------------------------------------
@@ -85,17 +85,18 @@
addAttrIDList, addAttrValueList = realmIpyData.GetAddAttrType(), realmIpyData.GetAddAttrNum()
- allAttrList = [{} for i in range(4)]
+ playerID = curPlayer.GetPlayerID()
+ attrDict = {}
for i, attrID in enumerate(addAttrIDList):
- PlayerControl.CalcAttrDict_Type(attrID, addAttrValueList[i], allAttrList)
+ attrDict[attrID] = attrDict.get(attrID, 0) + addAttrValueList[i]
- # 保存计算值
- PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_Prestige, allAttrList)
+ GameWorld.DebugLog("官职属性: %s" % attrDict, playerID)
+ PlayerOnline.GetOnlinePlayer(curPlayer).SetCalcAttr(ChConfig.Def_CalcAttr_Realm, attrDict)
return
def RefreshOfficialAttr(curPlayer):
CalcOfficialRankAttr(curPlayer)
- PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
+ PlayerOnline.GetOnlinePlayer(curPlayer).RefreshRoleAttr()
return
def AddRealmTaskValue(curPlayer, taskType, addValue):
@@ -243,7 +244,6 @@
return
curPlayer.SetOfficialRank(nextRealmLv)
- PlayerGubao.DoGubaoAddFreePoint(curPlayer)
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RealmTaskAwardState, 0)
syncTaskIDList = []
--
Gitblit v1.8.0