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/PlayerFaQi.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFaQi.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFaQi.py
index 5e93428..6704927 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFaQi.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFaQi.py
@@ -130,6 +130,8 @@
return
allAttrList = [{} for _ in range(4)]
+ customAttrDictFaQi = {}
+ faQiAllAttrInfo = {}
ipyDataMgr = IpyGameDataPY.IPY_Data()
for index in xrange(ipyDataMgr.GetFaQiLVUpCount()):
@@ -147,6 +149,7 @@
lvAttrValueList = lvupIpyData.GetLVAttrValue()
for i, attrID in enumerate(lvAttrTypeList):
attrValue = lvAttrValueList[i]
+ faQiAllAttrInfo[attrID] = faQiAllAttrInfo.get(attrID, 0) + attrValue
PlayerControl.CalcAttrDict_Type(attrID, attrValue, allAttrList)
# 培养丹增加属性
@@ -157,10 +160,12 @@
attrMultiple = upItemCount / upItemPerCount
for i, attrID in enumerate(upItemAttrTypeList):
attrValue = upItemAttrValueList[i]
+ faQiAllAttrInfo[attrID] = faQiAllAttrInfo.get(attrID, 0) + attrValue
PlayerControl.CalcAttrDict_Type(attrID, attrValue * attrMultiple, allAttrList)
+ customAttrDictFaQi["faQiAllAttrInfo"] = faQiAllAttrInfo
# 保存计算值
- PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_FaQi, allAttrList)
+ PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_FaQi, allAttrList, customAttrDict=customAttrDictFaQi)
return
def Sync_FaQiLVInfo(curPlayer):
--
Gitblit v1.8.0