hxp
2019-11-26 ac4f3139e69d4671a46a299df51159f018a5da13
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