From 0807c282222dc02bca3bffc5c03d32b4a447ef14 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期五, 09 十一月 2018 20:26:22 +0800 Subject: [PATCH] 3688 【后端】【1.2.0】天赋功能开发(功能ID修改) --- ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldProcess.py | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldProcess.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldProcess.py index 036a7cb..ccddad9 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldProcess.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldProcess.py @@ -172,6 +172,8 @@ PlayerGeTui.ClearFMTGeTuiLimit() import PlayerBourse PlayerBourse.OverTimeItemsDeal() + # 仙盟联赛 + GameWorldFamilyWar.DoOnDay() return def OnDayEx(tick): @@ -578,7 +580,7 @@ tjgOnlineCnt += 1 continue - platform = GameWorld.GetPlayerPlatform(player.GetAccID()) + platform = GameWorld.GetPlayerPlatform(player) platformOLDict[platform] = platformOLDict.get(platform, 0) + 1 # 累计平台在线人数 # mapID = player.GetMapID() @@ -1205,7 +1207,7 @@ # @remarks 先请求排行榜信息,然后SetTickTypeCount,设置需要保存的时间种类 def InitGameWorld(tick): #标记GameWorld初始化完成 - GameWorld.GetGameWorld().SetDict(ChConfig.Def_WorldKey_IsGameWorldInit, 1) + GameWorld.GetGameWorld().SetDict(ChConfig.Def_WorldKey_IsGameWorldInit, int(time.time())) #初始化游戏时钟 GameWorld.GetGameWorld().SetTickTypeCount(ChConfig.TYPE_Tick_Count) #初始话开服时间、星期几 @@ -1214,6 +1216,7 @@ if initOpenServerTime <= 0 or openServerWeekday <= 0: #记录首次开发时间(现实时间戳) PlayerDBGSEvent.SetInitOpenServerTime(initOpenServerTime if initOpenServerTime else int(time.time())) + #初始化家族数量 GameWorld.GetFamilyManager().SetFamilyUpperLimitCount(ChConfig.Def_Family_MaxCnt) #排序元宝交易平台 @@ -1322,9 +1325,11 @@ PyGameData.g_sortBOSSRefreshList = [] # boss刷新信息记录缓存重置, 不重置会导致通知前端的boss信息为空 - AllMapServerInitOK(tick) - PlayerDBGSEvent.SetInitOpenServerTime(setOpenServerTime) + + ReadChConfig.ReloadConfig() + + AllMapServerInitOK(tick) return ## 服务器开服时是星期几 @@ -1386,6 +1391,9 @@ # 通知战盟相关活动开启状态 fadState = PlayerDBGSEvent.GetDBGSTrig_ByKey(ShareDefine.Def_Notify_WorldKey_FamilyActivityDayState) GameWorld.SendMapServerMsgEx(ShareDefine.Def_Notify_WorldKey_FamilyActivityDayState, fadState) + # 通知开启服务器时间 + initGameWorldTime = GameWorld.GetGameWorld().GetDictByKey(ChConfig.Def_WorldKey_IsGameWorldInit) + GameWorld.SendMapServerMsgEx(ShareDefine.Def_Notify_WorldKey_InitGameWorldTime, initGameWorldTime) # 通知世界boss奖励信息 GameWorldBoss.OnMapServerInitOK() -- Gitblit v1.8.0