| | |
| | | # @return None
|
| | | # @remarks 函数详细说明.
|
| | | def DoFB_Player_KillNPC(curPlayer , curNPC , tick):
|
| | | mapID = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_ClientCustomSceneMapID)
|
| | | lineID = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_ClientCustomSceneLineID)
|
| | | mapID = PlayerControl.GetCustomMapID(curPlayer)
|
| | | lineID = PlayerControl.GetCustomLineID(curPlayer)
|
| | | if mapID:
|
| | | DoCustomScene_Player_KillNPC(curPlayer, curNPC, mapID, lineID)
|
| | | return
|
| | |
| | | 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 当前玩家
|
| | |
| | |
|
| | | return
|
| | |
|
| | | ## 自定义场景采集OK
|
| | | ## 自定义场景采集OK,需自带是否允许采集的判断
|
| | | def OnCustomSceneCollectOK(curPlayer, mapID, lineID, npcID):
|
| | | do_FBLogic_ID = __GetFBLogic_MapID(mapID)
|
| | |
|
| | | callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "OnCustomSceneCollectOK"))
|
| | |
|
| | | if callFunc:
|
| | | callFunc(curPlayer, mapID, lineID, npcID)
|
| | | return callFunc(curPlayer, mapID, lineID, npcID)
|
| | |
|
| | | return
|
| | |
|