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

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py
index a7a4d97..b0a472f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py
@@ -36,6 +36,8 @@
 import IpyGameDataPY
 import CrossPlayerData
 import PlayerSuccess
+import PlayerActHorsePetTrain
+import PlayerActTask
 import PlayerPet
 
 import time
@@ -645,6 +647,9 @@
     Sync_HorseClassData(curPlayer)
     # 刷属性,更新排行榜
     RefreshHorseAttr(curPlayer)
+    
+    PlayerActHorsePetTrain.OnHorsePetTrainCost(curPlayer, {costItemID:costItemCount})
+    PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_HorseUpItem, costItemCount)
     return
 
 #// A5 31 坐骑培养 #tagCMHorseTrain
@@ -677,7 +682,7 @@
         return
     
     needRealmLV = trainIpyData.GetNeedRealmLV()
-    curRealmLV = curPlayer.GetOfficialRank()
+    curRealmLV = PlayerControl.GetTrainRealmLVReal(curPlayer, 1)
     if curRealmLV < needRealmLV:
         GameWorld.DebugLog("    境界不足,无法培养!  curRealmLV(%s) < needRealmLV(%s)" % (curRealmLV, needRealmLV))
         return
@@ -724,6 +729,12 @@
     Sync_HorseClassData(curPlayer)
     # 刷属性,更新排行榜
     RefreshHorseAttr(curPlayer)
+    
+    PlayerActHorsePetTrain.OnHorsePetTrainCost(curPlayer, {costItemID:costItemCount})
+    if trainType == 2:
+        PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_HorseTrainItem2, costItemCount)
+    elif trainType == 3:
+        PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_HorseTrainItem3, costItemCount)
     return
 
 #// A5 35 坐骑升星 #tagCMHorseStarUp

--
Gitblit v1.8.0