From 392d0eb7cf141e59e899b1570b817f4b7f6c8fa3 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 18 一月 2025 11:42:07 +0800
Subject: [PATCH] 1111 【越南】【英语】【BT】【砍树】增加判断坐骑是否满级任务接口

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py |    6 ++++++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py         |   11 +++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
index 16e6f4a..3a0eda4 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
@@ -7039,6 +7039,12 @@
     horseLV = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
     return PlayerHorse.GetHorseSumLV(curPlayer) >= horseLV
 
+##坐骑是否满级
+# @param None
+# @return None <Horselvfull />
+def ConditionType_Horselvfull(curPlayer, curMission, curActionNode):
+    return PlayerHorse.IsHorseLVFull(curPlayer)
+
 ##是否已购买VIP礼包
 # @param None
 # @return None <Buyvipitem value="viplv"/>
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 74c98e7..b613498 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py
@@ -845,6 +845,17 @@
     ## 坐骑总等级
     return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorserLV)
 
+def IsHorseLVFull(curPlayer):
+    ## 坐骑是否满级
+    horseLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorserLV)    
+    horseIpyData = IpyGameDataPY.GetIpyGameData("HorseLVUp", horseLV)
+    if not horseIpyData:
+        return False
+    needEatCount = horseIpyData.GetNeedEatCount()
+    if not needEatCount:
+        return True
+    return False
+
 #============================骑宠觉醒=============================
 #// A5 29 骑宠觉醒 #tagCMHorsePetAwake
 #

--
Gitblit v1.8.0