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/PlayerPet.py |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 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 6e5f552..c0f2611 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPet.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPet.py
@@ -41,6 +41,8 @@
 import PlayerActivity
 import ChPyNetSendPack
 import NetPackCommon
+import PlayerActHorsePetTrain
+import PlayerActTask
 
 import random
 import math
@@ -542,6 +544,8 @@
         
     #EventReport.WriteEvent_pet_class(curPlayer, petNpcData.GetName(), classLV, petClassExp, updClassLV, newClassExp)
     
+    PlayerActHorsePetTrain.OnHorsePetTrainCost(curPlayer, {autoBuyItemID:costItemCount})
+    PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_PetUpItem, costItemCount)
     return
 
 def __UpdPetItemSkillByClass(curPlayer, petDataItem, isNotify=False):
@@ -906,7 +910,7 @@
         return
     
     needRealmLV = trainIpyData.GetNeedRealmLV()
-    curRealmLV = curPlayer.GetOfficialRank()
+    curRealmLV = PlayerControl.GetTrainRealmLVReal(curPlayer, 2)
     if curRealmLV < needRealmLV:
         GameWorld.DebugLog("    境界不足,无法培养!  curRealmLV(%s) < needRealmLV(%s)" % (curRealmLV, needRealmLV))
         return
@@ -953,6 +957,12 @@
     Sync_PetTrainData(curPlayer)
     # 刷属性,更新排行榜
     RefreshPetItemAddAttr(curPlayer, True)
+    
+    PlayerActHorsePetTrain.OnHorsePetTrainCost(curPlayer, {costItemID:costItemCount})
+    if trainType == 2:
+        PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_PetTrainItem2, costItemCount)
+    elif trainType == 3:
+        PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_PetTrainItem3, costItemCount)
     return
 
 #// A7 06 宠物升星 #tagCMPetStarUp

--
Gitblit v1.8.0