From 926ef31dc85a95af6da30307da9191e40a0a79ea Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期二, 12 三月 2019 16:36:38 +0800 Subject: [PATCH] 6328 【后端】优化代码eval -- 玩家缓存数据提取常用字段 等级和最后一次发送时间 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py index c0cb9f9..be27616 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py @@ -54,7 +54,7 @@ import PlayerSuccess import CrossPlayerData import PassiveBuffEffMng -import PlayerFamilyRedPacket +import FunctionNPCCommon import FormulaControl import PlayerGoldGift import PlayerFlashSale @@ -1132,7 +1132,7 @@ return True equipID = result[0] equipPlace = result[1] - if equipPlace == ShareDefine.retGuard: + if equipPlace in [ShareDefine.retGuard1, ShareDefine.retGuard2]: PlayerControl.NotifyCode(curPlayer, 'Guardian_Timeout', [equipID, spaceIndex]) elif equipPlace == ShareDefine.retWing: PlayerControl.NotifyCode(curPlayer, 'WingTiyan_Timeout') @@ -1146,8 +1146,8 @@ PlayerGoldGift.FirstGoldTryItemOutTime(curPlayer) # 广播卸装 - if equipIndex in ChConfig.Def_SyncEquipStateByIndex: - curPlayer.Sync_UnEquipItem(equipID, equipPlace) + if equipIndex in PlayerControl.GetFaceEquipIndexList(curPlayer) or equipPlace in ChConfig.Def_SyncEquipStateByIndex: + curPlayer.Sync_UnEquipItem(equipID, equipIndex) return True #--------------------------------------------------------------------- ##全局定时器调用, 刷新玩家状态 @@ -1276,6 +1276,8 @@ PlayerFlashSale.ProcessFlashSaleMail(curPlayer, tick) #地图经验 ProcessAreaExp(curPlayer, tick) + #神秘商店刷新 + FunctionNPCCommon.CheckMysticalShopRefresh(curPlayer, tick) #跨服数据同步,放最后 CrossPlayerData.ProcessCrossPlayer(curPlayer, tick) return -- Gitblit v1.8.0