From b041bf59da83d737cea0acc8ea53119390101128 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 30 四月 2024 15:21:49 +0800
Subject: [PATCH] 10033 【后端】仙树升级系统及砍树产出规则(还原角色职业升级属性支持)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
index 3b8daeb..0e035c3 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -4400,7 +4400,16 @@
         if baseAttrIDList and baseAttrValueList and len(baseAttrIDList) == len(baseAttrValueList):
             for i, attrID in enumerate(baseAttrIDList):
                 CalcAttrDict_Type(attrID, baseAttrValueList[i], allAttrList)
-        GameWorld.DebugLog("初始加属性: %s" % allAttrList)
+        #GameWorld.DebugLog("初始加属性: %s" % allAttrList)
+        
+        # 等级成长属性
+        LV = curPlayer.GetLV()
+        lvAttrDict = IpyGameDataPY.GetFuncEvalCfg("LVUPAttr%s" % job, 1)
+        for lvAttrID, formula in lvAttrDict.items():
+            calcValue = eval(FormulaControl.GetCompileFormula("LVUPAttr%s_%s" % (job, lvAttrID), formula))
+            CalcAttrDict_Type(lvAttrID, calcValue, allAttrList)
+            #GameWorld.DebugLog("    lvAttrID=%s,calcValue=%s" % (lvAttrID, calcValue))
+        #GameWorld.DebugLog("等级加属性: %s" % allAttrList)
         
         # 属性点属性
         hadRefreshAttr = curPlayer.GetDictByKey(ChConfig.Def_Player_HadRefreshAttr) # 本地图是否刷新过属性

--
Gitblit v1.8.0