From 73adb5f4c0fded408948712e5ab965054f624a3a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 14 八月 2024 16:37:18 +0800
Subject: [PATCH] 10238 【越南】【砍树】【主干】【港台】骑宠养成(增加骑宠养成活动;任务活动增加骑宠活动相关任务类型;商城增加可配置不重置限购次数;增加境界培养卡道具效果;增加法器生命、攻击、防御百分比属性;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 42 insertions(+), 0 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 677388c..0c46c9b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -4790,6 +4790,9 @@
                            ChConfig.TYPE_Calc_BaseDefAddPer:baseAttrList,
                            ChConfig.TYPE_Calc_BaseHitAddPer:baseAttrList,
                            ChConfig.TYPE_Calc_BaseMissAddPer:baseAttrList,
+                           ChConfig.TYPE_Calc_FaQiMaxHPPer:funcAttrInfoList[ChConfig.Def_CalcAttrFunc_FaQi],
+                           ChConfig.TYPE_Calc_FaQiAtkPer:funcAttrInfoList[ChConfig.Def_CalcAttrFunc_FaQi],
+                           ChConfig.TYPE_Calc_FaQiDefPer:funcAttrInfoList[ChConfig.Def_CalcAttrFunc_FaQi],
                            ChConfig.TYPE_Calc_GodWeaponMaxHPPer:funcAttrInfoList[ChConfig.Def_CalcAttrFunc_GodWeapon],
                            ChConfig.TYPE_Calc_GodWeaponAtkPer:funcAttrInfoList[ChConfig.Def_CalcAttrFunc_GodWeapon],
                            ChConfig.TYPE_Calc_StoneMaxHPPer:funcAttrInfoList[ChConfig.Def_CalcAttrFunc_Stone],
@@ -6848,6 +6851,36 @@
 #    addAttrList[ChConfig.CalcAttr_BattleNoline] = {}
 #    return addAttrList
 #===============================================================================
+## 培养境界等级
+def GetTrainRealmLVReal(curPlayer, funcType):
+    trainRealmLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TrainRealmLV % funcType)
+    return max(trainRealmLV, curPlayer.GetOfficialRank())
+def SetTrainRealmLV(curPlayer, funcType, trainRealmLV):
+    NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TrainRealmLV % funcType, trainRealmLV)
+    SyncTrainRealmLV(curPlayer, funcType)
+    return
+def SyncTrainRealmLV(curPlayer, funcType=None):
+    if funcType == None:
+        syncFuncTypeList = range(1, 1 + 10)
+    else:
+        syncFuncTypeList = [funcType]
+    infoList = []
+    for fType in syncFuncTypeList:
+        trainRealmLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TrainRealmLV % fType)
+        if not trainRealmLV and funcType == None:
+            continue
+        lvInfo = ChPyNetSendPack.tagMCTrainRealmLV()
+        lvInfo.FuncType = fType
+        lvInfo.TrainRealmLV = trainRealmLV
+        infoList.append(lvInfo)
+    if not infoList:
+        return
+    clientPack = ChPyNetSendPack.tagMCTrainRealmLVInfo()
+    clientPack.InfoList = infoList
+    clientPack.Count = len(clientPack.InfoList)
+    NetPackCommon.SendFakePack(curPlayer, clientPack)
+    return
+
 ## 魅力等级
 def GetCharmLV(curPlayer): return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CharmLV)
 def SetCharmLV(curPlayer, charmLV):
@@ -7030,6 +7063,15 @@
 # 基础闪避百分比
 def GetBaseMissAddPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_BaseMissAddPer)
 def SetBaseMissAddPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_BaseMissAddPer, value)
+# 法器生命百分比
+def GetFaQiMaxHPPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_FaQiMaxHPPer)
+def SetFaQiMaxHPPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_FaQiMaxHPPer, value)
+# 法器攻击百分比
+def GetFaQiAtkPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_FaQiAtkPer)
+def SetFaQiAtkPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_FaQiAtkPer, value)
+# 法器防御百分比
+def GetFaQiDefPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_FaQiDefPer)
+def SetFaQiDefPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_FaQiDefPer, value)
 # 神兵生命百分比
 def GetGodWeaponMaxHPPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_GodWeaponMaxHPPer)
 def SetGodWeaponMaxHPPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_GodWeaponMaxHPPer, value)

--
Gitblit v1.8.0