From d1771581d7b1d365a45a0aa075927c49e83618db Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 17 十二月 2024 14:24:16 +0800
Subject: [PATCH] 10337 【越南】【英文】【BT】【砍树】爬塔通关类的支持一键过关

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py
index a543acd..6ef3d49 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py
@@ -1668,6 +1668,36 @@
     
     return callFunc(curPlayer, mapID, lineID, cnt, dataEx)
 
+def OnPlayerFBQuickPass(curPlayer, mapID, lineID):
+    '''副本快速过关验证
+    @param mapID: 数据地图ID
+    @param lineID: 目标关卡线路ID,可一次性跳多关,由前端发包决定
+    @return: (bossID, quickCnt) 或  None
+    @note: bossID 目标NPCID - 目标关卡所需要挑战的主NPCID,一般是boss,用于验证战力是否满足快速过关
+    @note: quickCnt 本次总共跳过几关 - 默认1
+    '''
+    do_FBLogic_ID = __GetFBLogic_MapID(mapID)
+    
+    callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "OnPlayerFBQuickPass"))
+    
+    # 没有额外条件判断默认返回True
+    if callFunc == None:
+        return
+    
+    return callFunc(curPlayer, mapID, lineID)
+
+def OnPlayerFBQuickPassResult(curPlayer, mapID, lineID):
+    '''副本快速过关结果
+    '''
+    do_FBLogic_ID = __GetFBLogic_MapID(mapID)
+    
+    callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "OnPlayerFBQuickPassResult"))
+    
+    if callFunc == None:
+        return
+
+    return callFunc(curPlayer, mapID, lineID)
+
 #---------------------------------------------------------------------
 
 ## 切换地图询问(只询问第一条线) 判断是否可以进入副本

--
Gitblit v1.8.0