From 458f8ad37f944f5a4334dc9e522e6640e4aa2def Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 19 九月 2024 11:00:48 +0800 Subject: [PATCH] 10267 【越南】【英文】【砍树】仙官新增膜拜 --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py | 33 +++++++++++++++++---------------- 1 files changed, 17 insertions(+), 16 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py index 5d32d76..d259ddb 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py @@ -204,22 +204,23 @@ "LV":cacheDict["LV"], "RealmLV":cacheDict["RealmLV"], } - if "PlayerID" in exAttrs: - shotCacheDict["PlayerID"] = playerID - if "FightPower" in exAttrs: - shotCacheDict["FightPower"] = cacheDict["FightPower"] - if "ServerID" in exAttrs: - shotCacheDict["ServerID"] = GameWorld.GetAccIDServerID(cacheDict["AccID"]) - if "OfflineValue" in exAttrs: - olMgr = ChPlayer.GetOnlinePlayerMgr() - shotCacheDict["OfflineValue"] = olMgr.GetOfflineValue(playerID, viewCache) - # 附带外观模型展示相关 - if "Model" in exAttrs: - shotCacheDict.update({ - "TitleID":cacheDict.get("TitleID", 0), - "EquipShowSwitch":cacheDict.get("EquipShowSwitch", 0), - "EquipShowID":cacheDict.get("EquipShowID", []), - }) + for attrName in exAttrs: + if attrName == "PlayerID": + shotCacheDict["PlayerID"] = playerID + elif attrName == "ServerID": + shotCacheDict["ServerID"] = GameWorld.GetAccIDServerID(cacheDict["AccID"]) + elif attrName == "OfflineValue": + olMgr = ChPlayer.GetOnlinePlayerMgr() + shotCacheDict["OfflineValue"] = olMgr.GetOfflineValue(playerID, viewCache) + # 附带外观模型展示相关 + elif attrName == "Model": + shotCacheDict.update({ + "TitleID":cacheDict.get("TitleID", 0), + "EquipShowSwitch":cacheDict.get("EquipShowSwitch", 0), + "EquipShowID":cacheDict.get("EquipShowID", []), + }) + elif attrName in cacheDict: + shotCacheDict[attrName] = cacheDict[attrName] return shotCacheDict def GetSyncCrossCacheBase(curPlayer): -- Gitblit v1.8.0