From 30dd8ff93a00ada8262a35da0ede9c2088a7fd37 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 23 九月 2025 16:52:52 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(诸葛亮技能; 目标细分增加攻击力最高5; buff状态增加军令19;增加效果6006增加本次技能万分比验证职业;增加效果5015集火攻击军令目标;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py |   20 +++++++-------------
 1 files changed, 7 insertions(+), 13 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 9de8871..45e2df9 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
@@ -30,6 +30,7 @@
 import PlayerTongTianLing
 import PlayerGubao
 import PlayerTask
+import PlayerOnline
 
 #------------------------------------------------------------------------------
 
@@ -43,14 +44,6 @@
 
 # 需要记录任务值的任务类型列表
 NeedTaskValueTypeList = [RealmTaskType_UseXiantao]
-
-def DoOfficialOpen(curPlayer):
-    #功能开启
-#    curRealmLV = curPlayer.GetOfficialRank()
-#    if not curRealmLV:
-#        DoRealmLVUpLogic(curPlayer)
-    return True
-
 
 def OnLogin(curPlayer):
     SyncRealmInfo(curPlayer, isAll=True)
@@ -93,17 +86,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):

--
Gitblit v1.8.0