From 34f7a35b41419cc4d86ec98f91b92db1bc35bde1 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 23 十一月 2018 16:56:06 +0800
Subject: [PATCH] 4994 子 【优化】【1.3】神兵系统修改 / 【后端】【1.3】生命、攻击、暴击神兵的老号处理

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 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 31ad5c9..aff2794 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py
@@ -355,6 +355,16 @@
     
     return
 
+def DoFBOnNPCKill_Player(curNPC, curPlayer, tick):
+    ## 副本内NPC杀人
+    do_FBLogic_ID = __GetFBLogic_MapID(GameWorld.GetMap().GetMapID())
+    
+    callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "DoFBOnNPCKill_Player"))
+    
+    if callFunc:
+        #GameWorld.Log("副本逻辑不可使用   GameLogic_%d"%(mapID))
+        return  callFunc(curNPC, curPlayer, tick)
+    return
 #---------------------------------------------------------------------
 ## 任务专用,触发事件(副本内攻击人)
 #  @param curPlayer 攻击者
@@ -1897,14 +1907,14 @@
 #  @param mapID 玩家
 #  @param tick 当前时间
 #  @return None-未找到,线路id - 0~N
-def GetFBLineMaxPlayerCount(mapID):
+def GetFBLineMaxPlayerCount(mapID, lineID):
     
     do_FBLogic_ID = __GetFBLogic_MapID(mapID)
     
     callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "GetFBLineMaxPlayerCount"))
     
     if callFunc:
-        return callFunc()
+        return callFunc(lineID)
     
     return 0
 
@@ -2109,3 +2119,11 @@
     
     return callFunc(curPlayer, tick)
 
+def OnPlayerLVUp(curPlayer):
+    ## 玩家升级
+    do_FBLogic_ID = __GetFBLogic_MapID(GameWorld.GetMap().GetMapID())
+    callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "OnPlayerLVUp"))
+    if callFunc == None:
+        return False
+    return callFunc(curPlayer)
+    
\ No newline at end of file

--
Gitblit v1.8.0