From 41c7b27b6ce4d57a1fc0f281d8323956599cceef Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 06 十二月 2023 10:13:15 +0800
Subject: [PATCH] 9811 【BT9】【后端】逐鹿万界(结算同步玩家信息改为字典)
---
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py
index 454063a..530252d 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py
@@ -507,6 +507,21 @@
return
+def DelJobFightPowerBillboard(curPlayer, delJob):
+ ## 删除玩家对应职业战力榜 - 一般是玩家职业改变了,需要删除旧职业的职业战力榜单
+ if delJob not in ShareDefine.JobFightPowerBillboardDict:
+ return
+ jobBType = ShareDefine.JobFightPowerBillboardDict[delJob]
+ playerID = curPlayer.GetPlayerID()
+ billboardMgr = GameWorld.GetBillboard()
+ playerBillBoard = billboardMgr.FindBillboard(jobBType)
+ if not playerBillBoard:
+ return
+ if playerBillBoard.FindByID(playerID):
+ playerBillBoard.DeleteByID(playerID)
+ GameWorld.DebugLog("删除玩家职业战力榜单: delJob=%s,jobBType=%s" % (delJob, jobBType), playerID)
+ return
+
def GetBillboardOperateInfo(curPlayer):
# 排行榜中所保存的运营商相关信息
platform = curPlayer.GetAccID()
@@ -613,6 +628,9 @@
if opInfo != str(curPlayerOpInfo):
playerBillBoardData.SetName2(str(curPlayerOpInfo))
GameWorld.DebugLog(" 更新operatInfo=%s" % curPlayerOpInfo, curPlayerID)
+ if playerBillBoardData.GetType2() != billboardType:
+ playerBillBoardData.SetType2(billboardType)
+ GameWorld.DebugLog(" 更新Type2=%s" % billboardType, curPlayerID)
return False
# 没设置值默认为时间time,先上榜的排前面
--
Gitblit v1.8.0