From 7e0ecb9fda366097e9cb0bc3a79cb52c03da67f5 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 15 十一月 2022 18:11:05 +0800 Subject: [PATCH] 9727 【BT7】【主干】【越南】【后端】查看玩家装备缓存扩展到20阶(支持查看射雕装备17阶) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerEventCounter.py | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerEventCounter.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerEventCounter.py index 39ea12e..241ec57 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerEventCounter.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerEventCounter.py @@ -24,11 +24,16 @@ import datetime import PlayerFamily import PlayerDBGSEvent -import GameWorldActionControl +import PlayerViewCache import PlayerFBHelpBattle +import PlayerFairyDomain import ChPyNetSendPack +import GameWorldArena import NetPackCommon import PlayerDuJie +import PlayerCharm +import CrossBattlefield +import CrossChampionship #--------------------------------------------------------------------- #--------------------------------------------------------------------- @@ -39,6 +44,7 @@ def DoLogic_GameServer_OnHour(tick): #处理这个小时发出的邮件 #GameWorld.GetMailManager().ProcessAllMail() + PlayerFairyDomain.OnHour() return ## 处理玩家每日响应 @@ -54,8 +60,12 @@ if isMixServer: PlayerDBGSEvent.SetDBGSTrig_ServerTime(PlayerDBGSEvent.Def_MixServerDay) + #魅力 + PlayerCharm.DoOnDay() #家族更新 PlayerFamily.FamilyOnDay(tick) + #跨服排位 + CrossChampionship.DoOnDay() playerManager = GameWorld.GetPlayerManager() for i in xrange(playerManager.GetPlayerCount()): @@ -75,6 +85,16 @@ PlayerDuJie.OnDayEx() #副本助战 PlayerFBHelpBattle.HelpBattleOnDay() + #玩家缓存 + PlayerViewCache.DoOnDayEx() + #缥缈OnDay + PlayerFairyDomain.OnDayEx() + #竞技场 + GameWorldArena.OnDayEx() + #跨服战场 + CrossBattlefield.DoOnDayEx() + #跨服排位 + CrossChampionship.DoOnDayEx() playerManager = GameWorld.GetPlayerManager() for i in xrange(playerManager.GetPlayerCount()): curPlayer = playerManager.GetPlayerByIndex(i) @@ -94,6 +114,8 @@ #设定服务器当前周事件 PlayerDBGSEvent.SetDBGSTrig_ServerTime(PlayerDBGSEvent.Def_ServerWeek) + #魅力 + PlayerCharm.DoOnWeek() #家族更新 PlayerFamily.FamilyOnWeek(tick) @@ -109,6 +131,11 @@ return def DoLogic_GameServer_OnWeekEx(tick): + + # 竞技场 + GameWorldArena.OnWeekEx() + # 跨服战场 + CrossBattlefield.DoOnWeekEx() playerManager = GameWorld.GetPlayerManager() for i in xrange(playerManager.GetPlayerCount()): @@ -295,6 +322,7 @@ packData.NowMinute = serverTime.minute packData.NowSecond = serverTime.second packData.NowMicSecond = serverTime.microsecond + packData.WeekOfYear = GameWorld.GetWeekOfYear() NetPackCommon.SendFakePack(curPlayer, packData) return -- Gitblit v1.8.0