From ca358a222ca80d523fb232b1fd95b01450f8c1b6 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 24 十二月 2019 14:46:22 +0800 Subject: [PATCH] 8346 【恺英】【后端】协助系统(增加协助boss成功仙盟广播) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py | 19 +++++++++++++++++++ 1 files changed, 19 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 f761133..a8a08f3 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py @@ -538,6 +538,10 @@ if gameMap.GetMapFBType() == IPY_GameWorld.fbtNull: return + #进入副本默认回满血 + if curPlayer.GetHP() < curPlayer.GetMaxHP(): + curPlayer.SetHP(curPlayer.GetMaxHP()) + #副本管理器 gameFBMgr = GameWorld.GetGameFB() @@ -566,6 +570,9 @@ if callFunc != None: GameWorld.Log("DoEnterFBLogic...", curPlayer.GetPlayerID()) callFunc(curPlayer, tick) + #扣费一般都是在进入副本逻辑里处理,免费只有一次性的,所以放在后面进行重置,防止一直免费 + if curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_EnterFBFree): + PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_EnterFBFree, 0) return def OnCallHelpBattleOK(curPlayer, tick): @@ -794,6 +801,18 @@ #执行副本逻辑 return callFunc(curPlayer, mapID, lineID) +## 是否可以获得副本地图区域经验 +def OnCanGetAreaExp(curPlayer, mapID): + do_FBLogic_ID = __GetFBLogic_MapID(mapID) + + callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "OnCanGetAreaExp")) + + if callFunc == None: + return True + + #执行副本逻辑 + return callFunc(curPlayer) + ## 是否可以开始收集 # @param curPlayer 当前玩家 # @param curNPC 物品NPC -- Gitblit v1.8.0