| | |
| | | import IpyGameDataPY
|
| | | import ShareDefine
|
| | | import NPCCommon
|
| | | import ChConfig
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | | def OnLogin(curPlayer):
|
| | |
| | | GameWorld.DebugLog("不存在该副本或线路无法扫荡!mapID=%s, lineID=%s" % (mapID, lineID))
|
| | | return
|
| | |
|
| | | if not FBCommon.IsFBPass(curPlayer, mapID, lineID):
|
| | | if mapID not in ChConfig.SweepUnCheckPassMapIDList and not FBCommon.IsFBPass(curPlayer, mapID, lineID):
|
| | | GameWorld.DebugLog("未过关无法扫荡!mapID=%s, lineID=%s" % (mapID, lineID))
|
| | | return
|
| | |
|
| | |
| | | return
|
| | |
|
| | | # 副本是否可扫荡, 这里只判断副本自身的特殊条件, 公共条件上面已经判断
|
| | | if not FBLogic.OnPlayerFBSweepAsk(curPlayer, mapID, lineID, cnt, dataEx):
|
| | | askRet = FBLogic.OnPlayerFBSweepAsk(curPlayer, mapID, lineID, cnt, dataEx)
|
| | | if not askRet:
|
| | | GameWorld.DebugLog("该副本当前无法扫荡!mapID=%s, lineID=%s" % (mapID, lineID))
|
| | | return
|
| | | |
| | | #PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_FeastRedPack_FBSweep, 1, [mapID])
|
| | |
|
| | | #需先扣除门票, 再增加次数, 否则可能导致扣除的数量错误
|
| | | #FBCommon.DelFBEnterTicket(curPlayer, mapID, lineID, cnt)
|
| | |
| | | FBCommon.AddEnterFBCount(curPlayer, mapID, cnt)
|
| | |
|
| | | #扫荡结果给奖励等
|
| | | FBLogic.OnPlayerFBSweepResult(curPlayer, mapID, lineID, cnt, dataEx)
|
| | | FBLogic.OnPlayerFBSweepResult(curPlayer, mapID, lineID, cnt, dataEx, askRet)
|
| | | return
|
| | |
|
| | | #// B1 08 快速一键过关副本 #tagCMFBQuickPass
|