From 6eb8ce81a683bf5a3024877fdcd4d8c95a8c87b5 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 29 六月 2023 17:15:43 +0800
Subject: [PATCH] 9818 【BT10】新增古宝特效效果

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerShentong.py |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerShentong.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerShentong.py
index b75aeec..3372899 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerShentong.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerShentong.py
@@ -230,9 +230,11 @@
 
 def CalcShentongAttr(curPlayer):
     
+    customAttrDictShentong = {}
     fightPowerEx = 0
     allAttrList = [{} for _ in range(4)]
     
+    shentongSkillInfo = {}
     ipyDataMgr = IpyGameDataPY.IPY_Data()
     for index in xrange(ipyDataMgr.GetShentongCount()):
         ipyData = ipyDataMgr.GetShentongByIndex(index)
@@ -258,10 +260,19 @@
             if lvIpyData.GetFightPowerEx():
                 fightPowerEx += lvIpyData.GetFightPowerEx()
                 
+            LVSkillID = lvIpyData.GetLVSkillID()
+            if LVSkillID:
+                skillData = GameWorld.GetGameData().GetSkillBySkillID(LVSkillID)
+                if skillData:
+                    skillTypeID = skillData.GetSkillTypeID()
+                    skillLV = skillData.GetSkillLV()
+                    shentongSkillInfo[skillTypeID] = skillLV
+                    
+    customAttrDictShentong["shentongSkillInfo"] = shentongSkillInfo          
     # 附加战力
     curPlayer.SetDict(ChConfig.Def_PlayerKey_MFPEx % ShareDefine.Def_MFPType_Shentong, fightPowerEx)
     # 保存计算值
-    PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_Shentong, allAttrList)
+    PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_Shentong, allAttrList, customAttrDict=customAttrDictShentong)
     return
 
 def Sync_ShentongLVInfo(curPlayer, shentongIDList=None):

--
Gitblit v1.8.0