| | |
| | | if gameMap.GetMapFBType() == IPY_GameWorld.fbtNull:
|
| | | return
|
| | |
|
| | | #进入副本默认回满血
|
| | | if curPlayer.GetHP() < curPlayer.GetMaxHP():
|
| | | curPlayer.SetHP(curPlayer.GetMaxHP())
|
| | | |
| | | #副本管理器
|
| | | gameFBMgr = GameWorld.GetGameFB()
|
| | |
|
| | |
| | | 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):
|
| | |
| | | #执行副本逻辑
|
| | | 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
|