From ba951da9a5916d6250ea2fdf0a8f9028740ade34 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 12 三月 2024 19:59:10 +0800 Subject: [PATCH] 10033 【后端】仙树升级系统及砍树产出规则(增加装备评分参数支持: 攻速、击晕、连击、抗连击、反击、抗反击、吸血、抗吸血) --- ServerPython/CoreServerGroup/GameServer/Script/PyGameData.py | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/PyGameData.py b/ServerPython/CoreServerGroup/GameServer/Script/PyGameData.py index 2bcdd79..b61d39b 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/PyGameData.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/PyGameData.py @@ -12,7 +12,11 @@ # #--------------------------------------------------------------------- +g_dbPlayerIDMap = {} # DBPlayer玩家表ID映射关系 {playerID:accID, ...} + g_allMapServerInitOK = False + +g_noPlayerLoginWarningMailState = 0 # 服务器启动后无玩家登录预警邮件状态; 0-未处理;1-已发送;2-有玩家登录了 g_pyGameDataManager = None @@ -80,6 +84,7 @@ g_familyPartyTopInfo = [] #仙盟宴会答题王 [playerID,名字] g_partyheroAnswerDict = {} #仙盟宴会玩家答对题目数量 {playerid:答题数量,..} g_familyAnswerPlayerIDDict = {} #仙盟宴会玩家参与答题数量 {playerID:[题目ID, ...], ...} +g_chuangongPlayerDict = {} #传功玩家信息 {playerID:[目标玩家ID, ...], ...} g_redPacketMgr = None # RedPacketMgr @@ -89,8 +94,9 @@ g_marryReqInfo = {} # 当前进行中的求亲信息 {请求玩家ID:MarryReq, ...} g_marryCandyInfo = {} # 进行中的喜糖信息 {(playerIDA, playerIDB):MarryCandy, ...} -g_marryCandySortList = [] # 按结算时间排序后的喜糖列表 -g_marryBreakReqInfo = {} # 请求离婚信息 {reqPlayerID:tagPlayerID, ...} +g_marryCandySortList = [] # 按结算时间排序后的喜糖列表,升序 +g_marryBreakInfo = {} # 进行中的离婚信息{(playerIDA, playerIDB):MarryCandy, ...} +g_marryBreakSortList = [] # 按提交时间排序后的喜糖列表,升序 g_arenaPlayerBattleRecDict = {} # 本服竞技场玩家挑战记录缓存 {playerID:[ArenaBattleRec, ...], ...} g_arenaPlayerMatchDict = {} # 本服竞技场玩家匹配记录缓存 {playerID:[ArenaMatchPlayer, ...], ...} @@ -100,6 +106,13 @@ g_forbidAutoViceleaderFamily = [] #禁止自动安排副盟主的仙盟[familyID,..] g_crossZoneName = "" # 跨服分区名 + +g_crossServerTimeInfo = [0, 0, 0] # 跨服时间信息 [crossServerTime, curServerTime, syncMapTime] + +g_luckyCloudBuyNumDict = {} # 幸运云购购买记录 {zoneID:[LuckyCloudBuyNum, ...], ...} +g_luckyCloudBuyLotteryDict = {} # 幸运云购开奖记录 {zoneID:[LuckyCloudBuyLottery, ...], ...} +g_unNotifyCloudBuyNumDict = {} # 未通知的跨服云购购买信息 {playerID:msgData, ...} +g_luckyCloudBuyRemainCountDict = {} # 幸运云购剩余购买份数 {zoneID:remainCount, ...} - 子服用 g_crossActInfoDict = None # 跨服运营活动信息 {actName:{actInfoDict}, ...} @@ -130,6 +143,17 @@ g_crossFBFuncLinePlayerCountInfo = {} # 跨服副本功能线路人数信息,本服缓存 {mapID:{funcLineID:[playerCount], ...}, ...} +g_unNotifyPlayerCrossMsgDict = {} # 未通知玩家的跨服命令 {playerID:{msgType:[msgInfo], ...}, ...} + +g_crossBattlefieldBuyInfo = {} # 跨服战场购买记录 {zoneID:{hmNum:{playerID:CrossBattlefieldBuy, ...}, ...}, ...} +g_openDateTime = None # 本场次开启的时间 +g_overPlayerIDList = [] # 本场次已经结算的玩家ID列表 + +g_championshipMgr = None # 跨服排位争霸赛管理 + +g_crossActAllRechargeInfo = {} # 跨服全民充值信息,本服用 {zoneID:{playerID:总充值, ...}, ...} +g_crossYaomoBossHurtInfo = {} # 跨服妖魔boss伤害信息,本服用 {playerID:hurtTotal, ...} + g_familyTalkCache = {} #{familyID:[[time,content,extras],..]} g_worldTalkCache = [] #[[time,name, playerID, content,extras],..] -- Gitblit v1.8.0