| | |
| | | # @return 布尔值
|
| | | def OnEnterFBEvent(curPlayer, mapID, lineID, tick):
|
| | | IsDouble = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FMTDouble)
|
| | | newbielineList = IpyGameDataPY.GetFuncEvalCfg('SealDemonNewbieLine')
|
| | | if IsDouble and lineID not in newbielineList:
|
| | | enterCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_EnterFbCntDay % mapID)
|
| | | maxCnt = FBCommon.GetEnterFBMaxCnt(curPlayer, mapID)
|
| | | #newbielineList = IpyGameDataPY.GetFuncEvalCfg('SealDemonNewbieLine')
|
| | | if IsDouble:# and lineID not in newbielineList:
|
| | | enterCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_EnterFbCntDay % ChConfig.Def_FBMapID_SealDemon)
|
| | | maxCnt = FBCommon.GetEnterFBMaxCnt(curPlayer, ChConfig.Def_FBMapID_SealDemon)
|
| | | if enterCnt + 2 > maxCnt:
|
| | | return False
|
| | | if lineID in newbielineList:
|
| | | hasEnter = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, False,
|
| | | [ChConfig.Def_FBMapID_SealDemon])
|
| | | if hasEnter:
|
| | | GameWorld.DebugLog(" 已进入过该新手线路 %s" % lineID)
|
| | | return False
|
| | | # 新手副本修改为也可以重复进
|
| | | # if lineID in newbielineList:
|
| | | # hasEnter = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, False,
|
| | | # [ChConfig.Def_FBMapID_SealDemon])
|
| | | # if hasEnter:
|
| | | # GameWorld.DebugLog(" 已进入过该新手线路 %s" % lineID)
|
| | | # return False
|
| | | return True
|
| | |
|
| | |
|
| | |
| | | prizeMultiple = 1
|
| | | addCnt = 1
|
| | | if isNewbieLine:
|
| | | hasEnter = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, False, [ChConfig.Def_FBMapID_SealDemon])
|
| | | if hasEnter:
|
| | | #已给过
|
| | | return {}
|
| | | newbieLineStar = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, False, [ChConfig.Def_FBMapID_SealDemon])
|
| | | # 新手本改为可重复进入
|
| | | # hasEnter = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, False, [ChConfig.Def_FBMapID_SealDemon])
|
| | | # if hasEnter:
|
| | | # #已给过
|
| | | # return {}
|
| | | elif isClientSend:
|
| | | return {}
|
| | | else:
|
| | |
| | | #新手线路的更新进去记录
|
| | | newbielineList = IpyGameDataPY.GetFuncEvalCfg('SealDemonNewbieLine')
|
| | | GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, 1, False, [ChConfig.Def_FBMapID_SealDemon])
|
| | | if lineID in newbielineList:
|
| | | if isNewbieLine:
|
| | | # 未过关不扣次数
|
| | | if newbieLineStar:
|
| | | FBCommon.AddEnterFBCount(curPlayer, ChConfig.Def_FBMapID_SealDemon, addCnt)
|
| | | else:
|
| | | FBCommon.Sync_FBPlayerFBInfoData(curPlayer, ChConfig.Def_FBMapID_SealDemon) # 同步信息
|
| | | else:
|
| | | FBCommon.AddEnterFBCount(curPlayer, ChConfig.Def_FBMapID_SealDemon, addCnt)
|
| | | |
| | |
|
| | | # 每日活动
|
| | | PlayerActivity.AddDailyActionFinishCnt(curPlayer, ShareDefine.DailyActionID_SealDemon, addCnt)
|
| | |
| | | #任务
|
| | | if rank == 1 and lineID >= 4:
|
| | | EventShell.EventRespons_SealDemon(curPlayer)
|
| | | |
| | |
|
| | | PlayerBossReborn.AddBossRebornActionCnt(curPlayer, ChConfig.Def_BRAct_FMT, addCnt)
|
| | | PlayerFairyCeremony.AddFCPartyActionCnt(curPlayer, ChConfig.Def_PPAct_FMT, addCnt)
|