| | |
| | | import GameWorld
|
| | | import ChConfig
|
| | | import GameWorldProcess
|
| | | import PlayerWeekParty
|
| | | import PyGameData
|
| | | import ShareDefine
|
| | | import EventReport
|
| | |
| | | if not curPlayer.GetFamilyID():
|
| | | GameWorld.DebugLog("OnEnterFBEvent not family!")
|
| | | return False
|
| | | |
| | | if curPlayer.GetFamilyLV() < IpyGameDataPY.GetFuncCfg('SWRHFamilyLV'):
|
| | | return
|
| | | # startTick = GameWorld.GetGameWorld().GetGameWorldDictByKey(Map_FamilyInvadeFB_StartTick)
|
| | | # invadeCfg = GetFamilyInvadeCfg()
|
| | | # if tick - startTick > invadeCfg[Def_Time_MapPrepare] * 1000:
|
| | |
| | | gameWorld.SetGameWorldDict(GameFBDict_LastEnterFbDay % playerID, openServerDay + 1)
|
| | | FBCommon.AddEnterFBCount(curPlayer, ChConfig.Def_FBMapID_FamilyInvade)
|
| | | EventReport.WriteEvent_FB(curPlayer, ChConfig.Def_FBMapID_FamilyInvade, 0, ChConfig.CME_Log_Start)
|
| | | PlayerWeekParty.AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_SWRH, 1)
|
| | | if familyID in PyGameData.g_swrhPlayerIDDict:
|
| | | if playerID not in PyGameData.g_swrhPlayerIDDict[familyID]:
|
| | | PyGameData.g_swrhPlayerIDDict[familyID].append(playerID)
|
| | |
| | | passGrade = 1 #d
|
| | |
|
| | | overMsgDict = {FBCommon.Over_dataMapID:ChConfig.Def_FBMapID_FamilyInvade, FBCommon.Over_isPass:int(isAllPass), FBCommon.Over_grade:passGrade, FBCommon.Over_costTime:costTime}
|
| | | GameWorld.Log("副本结算: familyID=%s, %s" % (familyID, overMsgDict), familyID)
|
| | | killNPCCnt = gameFB.GetGameFBDictByKey(Map_FamilyInvadeFB_KillNPCCnt)
|
| | | GameWorld.Log("副本结算: familyID=%s, overMsgDict=%s,passWheel=%s,killNPCCnt=%s" % (familyID, overMsgDict, passWheel, killNPCCnt), familyID)
|
| | |
|
| | | leaveTick = invadeCfg[Def_Time_Leave] * 1000
|
| | | copyMapPlayerManager = GameWorld.GetMapCopyPlayerManager()
|