From eb642ec3ea4e9608817a69c03aa05223684fdbe1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 08 十一月 2024 16:11:59 +0800
Subject: [PATCH] 10261 【越南】【砍树】【英文】【tqxbqy】头像框,头像(补充B907)

---
 ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActionControl.py |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActionControl.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActionControl.py
index fab79d4..7315f7a 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActionControl.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActionControl.py
@@ -25,6 +25,7 @@
 import PlayerActBossTrial
 import PlayerActXianXiaMJ
 import PlayerActGubao
+import PlayerActHorsePetTrain
 import CrossRealmMsg
 import PyGameData
 import PlayerFB
@@ -633,6 +634,9 @@
                 elif actName == ShareDefine.CrossActName_Gubao:
                     PlayerActGubao.OnCrossActIDChange(cfgID, zoneID, ipyData, state)
                     
+                elif actName == ShareDefine.CrossActName_HorsePetTrain:
+                    PlayerActHorsePetTrain.OnCrossActIDChange(cfgID, zoneID, ipyData, state)
+                    
                 else:
                     actChangeList.append([actName, ipyData, state, cfgID, groupName, zoneID, dbActID, actID, forceReset, dbTemplateID])
                     
@@ -646,6 +650,17 @@
                               % (actName, cfgID, groupName, zoneID, dbState, state, actIDChange, dbTemplateID))
                 actStateChangeList.append([actName, ipyData, dbState, state, cfgID, groupName, zoneID, actIDChange, dbTemplateID])
                 
+            # 活动中刷新,每次都需要刷新的逻辑,包含重读配置等
+            if state:
+                if actName == ShareDefine.CrossActName_BossTrial:
+                    PlayerActBossTrial.OnCrossActInStateRefresh(cfgID, zoneID, ipyData)
+                elif actName == ShareDefine.CrossActName_XianXiaMJ:
+                    PlayerActXianXiaMJ.OnCrossActInStateRefresh(cfgID, zoneID, ipyData)
+                elif actName == ShareDefine.CrossActName_Gubao:
+                    PlayerActGubao.OnCrossActInStateRefresh(cfgID, zoneID, ipyData)
+                elif actName == ShareDefine.CrossActName_HorsePetTrain:
+                    PlayerActHorsePetTrain.OnCrossActInStateRefresh(cfgID, zoneID, ipyData)
+                    
             # 仅活动有配置参与时间段的会触发
             if actID and dbActID == actID and dbStateJoin != stateJoin:
                 GameWorld.Log("    参与状态变更: dbStateJoin=%s,stateJoin=%s" % (dbStateJoin, stateJoin))
@@ -663,6 +678,9 @@
                     elif actName == ShareDefine.CrossActName_Gubao:
                         PlayerActGubao.OnCrossActJoinEnd(cfgID, zoneID, ipyData)
                         
+                    elif actName == ShareDefine.CrossActName_HorsePetTrain:
+                        PlayerActHorsePetTrain.OnCrossActJoinEnd(cfgID, zoneID, ipyData)
+                        
             GameWorld.SendMapServerMsgEx(ShareDefine.Def_Notify_WorldKey_CrossActInfo % actName, crossActInfoDict[actName])
             # 非活动中的处理完关闭后,最后删除
             if not state and isEnd:

--
Gitblit v1.8.0