From 346500a2bdb3a330e1721b1ccd6461e7c7459935 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 04 十二月 2024 14:07:14 +0800
Subject: [PATCH] 10318 【英文】【越南】【BT】【砍树】统一增加奖励获得封包(珍宝阁下发附带获得货币信息, "EventName":Zhenbaoge)

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py
index 8b7e907..ff0534f 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py
@@ -19,6 +19,7 @@
 import NetPackCommon
 import ShareDefine
 import ChConfig
+import copy
 #---------------------------------------------------------------------
 
 def OnLogin(curPlayer):
@@ -30,7 +31,11 @@
 def SWRHFBOver(familyID):
     if familyID not in PyGameData.g_swrhJoinRecord:
         PyGameData.g_swrhJoinRecord.append(familyID)
-    
+        
+    NotifySWRHFamily(familyID)
+    return
+
+def NotifySWRHFamily(familyID):
     #通知
     family = GameWorld.GetFamilyManager().FindFamily(familyID)
     if not family:
@@ -51,10 +56,16 @@
 
 
 def OnSWRHStateChange(dictName, isOpen):
+    
+    copyJoinRecord = copy.deepcopy(PyGameData.g_swrhJoinRecord)
     PyGameData.g_swrhJoinRecord = []
     
-    
+    if isOpen:
+        for familyID in copyJoinRecord:
+            NotifySWRHFamily(familyID)
+            
     return
 
 #是否在守卫人皇活动中
-def IsInFamilySWRH():return GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_FBFuncState % ChConfig.Def_FBMapID_FamilyInvade)
\ No newline at end of file
+def IsInFamilySWRH():return GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_FBFuncState % ChConfig.Def_FBMapID_FamilyInvade)
+

--
Gitblit v1.8.0