From 387d2b48324d9b3fa1505b9af64858045f76fe67 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 02 三月 2020 19:01:05 +0800
Subject: [PATCH] 8389 【后端开发】天星塔挑战榜(B213封包增加领奖记录同步)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyInvade.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyInvade.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyInvade.py
index ac69927..0b5054c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyInvade.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyInvade.py
@@ -24,6 +24,7 @@
 import GameWorld
 import ChConfig
 import GameWorldProcess
+import PlayerWeekParty
 import PyGameData
 import ShareDefine
 import EventReport
@@ -105,7 +106,8 @@
     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:
@@ -172,6 +174,7 @@
         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)
@@ -602,7 +605,8 @@
         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()

--
Gitblit v1.8.0