From a6b6d774e4039fe551bfe2fbf82182ca1714479c Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 11 五月 2024 18:02:35 +0800
Subject: [PATCH] 10071 【后端】灵宠改版(升阶增加玩家属性)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPet.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPet.py
index 2abebb8..6e5f552 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPet.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPet.py
@@ -825,6 +825,16 @@
                 attrValue = starAttrValue[i]
                 PlayerControl.CalcAttrDict_Type(attrID, attrValue, allAttrListStar)
                 
+        #升阶
+        classlv = petItem.GetUserAttr(ShareDefine.Def_IudetPet_ClassLV) + 1
+        classIpyData = IpyGameDataPY.GetIpyGameDataNotLog("PetClassCost", petItemNPCID, classlv)
+        if classIpyData:
+            attrTypeList = classIpyData.GetAttrType()
+            attrValueList = classIpyData.GetAttrValue()
+            for i, attrID in enumerate(attrTypeList):
+                attrValue = attrValueList[i]
+                PlayerControl.CalcAttrDict_Type(attrID, attrValue, allAttrListStar)
+                
     PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_PetSkin, allAttrListPetSkin)
     PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_PetStar, allAttrListStar)
     curPlayer.SetDict(ChConfig.Def_PlayerKey_MFPEx % ShareDefine.Def_MFPType_Pet, fpExTotal)

--
Gitblit v1.8.0