From f6334d003ecef6b59d97bde3ed53bcbf8e3ac515 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 02 七月 2024 16:31:28 +0800
Subject: [PATCH] 10192 【越南】【主干】【港台】【砍树】上线增加膜拜主动推送(增加膜拜功能,目前支持跨服排位赛名次及服务器冠名膜拜;增加GameServer玩家记录表;玩家缓存增加记录佩戴称号ID)

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

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossChampionship.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossChampionship.py
index 43abd50..3537914 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossChampionship.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossChampionship.py
@@ -29,6 +29,7 @@
 import PlayerControl
 import PyDataManager
 import NetPackCommon
+import GameWorship
 import PyGameData
 import ChConfig
 import PlayerFB
@@ -1945,9 +1946,14 @@
     champMgr = GetChampionshipMgr()
     champMgr.ClearOfficialZone() # 最终结算重置仙官信息,替换最新仙官
     
+    # 膜拜重置
+    worshipType = ShareDefine.Def_WorshipType_CrossChampionship
+    GameWorship.DelWorshipPlayer(worshipType)
+    
     pkZoneIDList = champMgr.GetChampPKZoneIDList()
     GameWorld.Log("pkZoneIDList=%s" % pkZoneIDList)
     
+    worshipList = []
     for zoneID in pkZoneIDList:
         GameWorld.Log("=== 结算排位分区: zoneID=%s ===" % zoneID, zoneID)
         finalPlayerIDList = []
@@ -1991,6 +1997,11 @@
                 
                 offZoneMgr.officialInfo[officialID] = offObj
                 
+                worshipValue = rank
+                if GameWorship.GetWorshipIpyData(worshipType, worshipValue):
+                    worshipData = GameWorship.AddWorshipPlayer(playerID, worshipType, worshipValue, zoneID=zoneID, isNotify=False)
+                    worshipList.append(worshipData)
+                    
             # 名次奖励
             paramList = [rank]
             PlayerCompensation.SendMailByKey("CrossChampionshipPKRank", [playerID], rankAwardItemList, paramList, crossMail=True)
@@ -2033,6 +2044,9 @@
     
     serverGroupIDList = [] # 全服统一逻辑
     PlayerControl.WorldNotifyCross(serverGroupIDList, 0, "ChampionshipOver")
+    
+    # 通知新添加的膜拜
+    GameWorship.SyncAddCrossWorship(worshipList)
     GameWorld.Log("===================================================================")
     return
 

--
Gitblit v1.8.0