From 72e91a62ea834ab33da32fea41831221f9083b56 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 24 二月 2025 18:16:23 +0800
Subject: [PATCH] 10407 【越南】【英语】【BT】【GM】【砍树】周末BUG汇总(模块战力支持超20亿;开服活动榜同步修改支持超20亿;)

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py |   42 ++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py
index 400a510..e68a555 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py
@@ -154,6 +154,43 @@
         
     return
 
+def FixBillboardBigCmpValue():
+    ## 修正部分榜单大比较值,支持超20亿,主要为了模块战力等支持超20亿
+    if PlayerDBGSEvent.GetDBGSTrig_ByKey(PlayerDBGSEvent.Def_FixBillboardBigCmpValue):
+        GameWorld.Log("修正部分榜单大比较值支持超20亿已经处理过")
+        return
+    PlayerDBGSEvent.SetDBGSTrig_ByKey(PlayerDBGSEvent.Def_FixBillboardBigCmpValue, 1)
+    fixBillTypeList = [ShareDefine.Def_BT_FightPower_Horse]
+    fixBillTypeList += ShareDefine.Def_Campaign_Billboard_Dict.values()
+    GameWorld.Log("修正部分榜单大比较值支持超20亿: %s" % fixBillTypeList)
+    
+    billboardMgr = GameWorld.GetBillboard()
+    for billboardType in fixBillTypeList:
+        billBoard = billboardMgr.FindBillboard(billboardType)
+        dataCount = billBoard.GetCount()
+        if not dataCount:
+            continue
+        DataRecordPack.DR_BillboardData(billboardType, "FixBillboardBigCmpValue")
+        GameWorld.Log("修正榜单大比较值: billboardType=%s" % billboardType)
+        for index in range(dataCount):
+            boardData = billBoard.At(index)
+            if not boardData:
+                continue
+            dataID = boardData.GetID()
+            cmpValue = boardData.GetCmpValue()
+            cmpValue2 = boardData.GetCmpValue2()
+            if cmpValue2:
+                GameWorld.Log("    index=%s,dataID=%s, keep CmpValue=%s,CmpValue2=%s" % (index, dataID, cmpValue, cmpValue2))
+                continue
+            boardData.SetCmpValue(0)
+            boardData.SetCmpValue2(cmpValue)
+            
+            cmpValue = boardData.GetCmpValue()
+            cmpValue2 = boardData.GetCmpValue2()
+            GameWorld.Log("    index=%s,dataID=%s, Update CmpValue=%s,CmpValue2=%s" % (index, dataID, cmpValue, cmpValue2))
+            
+    return
+
 def SortServerBillboard():
     ##排序所有排行榜
     billboardMgr = GameWorld.GetBillboard()
@@ -748,6 +785,9 @@
         else:
             cmpValue3 = playerBillBoardData.GetCmpValue3()
             
+    GameWorld.DebugLog("更新排行榜值 index=%s,type2=%s,value1=%s,value2=%s,cmpValue=%s,cmpValue2==%s,cmpValue3==%s,isNewData=%s,cmpValueChange=%s,%s" 
+                       % (billboardIndex, type2, value1, value2, cmpValue, cmpValue2, cmpValue3, isNewData, cmpValueChange, kwargs), curPlayerID)
+    
     #设置排行榜数据
     playerBillBoardData.SetType(billboardIndex)
     #附属类型
@@ -773,8 +813,6 @@
     if cmpValue3 > 0:
         playerBillBoardData.SetCmpValue3(cmpValue3)
         
-    GameWorld.DebugLog("更新排行榜值 index=%s,type2=%s,value1=%s,value2=%s,cmpValue=%s,cmpValue2==%s,cmpValue3==%s,isNewData=%s,cmpValueChange=%s,%s" 
-                       % (billboardIndex, type2, value1, value2, cmpValue, cmpValue2, cmpValue3, isNewData, cmpValueChange, kwargs), curPlayerID)
     if not cmpValueChange:
         return True
     

--
Gitblit v1.8.0