From fff7319fd0fb06d03364c5be64edc5bc22e1fe3f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 28 八月 2025 18:04:18 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(NPC支持成长属性;NPC支持关联武将;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCache.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCache.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCache.py
index cd5d600..01a1dc0 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCache.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCache.py
@@ -160,7 +160,7 @@
lastUpdTick = curPlayer.GetDictByKey(Key_UpdViewCacheTick)
tick = GameWorld.GetGameWorld().GetTick()
if lastUpdTick and tick - lastUpdTick < 60000:
- GameWorld.DebugLog("1分钟内只更新一次玩家缓存", playerID)
+ #GameWorld.DebugLog("1分钟内只更新一次玩家缓存", playerID)
return
curPlayer.SetDict(Key_UpdViewCacheTick, tick)
return UpdPlayerViewCache(curPlayer)
@@ -180,7 +180,7 @@
tick = GameWorld.GetGameWorld().GetTick()
curPlayer.SetDict(Key_UpdViewCacheTick, tick)
- GameWorld.DebugLog("更新玩家查看缓存数据! isOffline=%s" % isOffline, playerID)
+ #GameWorld.DebugLog("更新玩家查看缓存数据! isOffline=%s" % isOffline, playerID)
curCache.SetAccID(curPlayer.GetAccID())
curCache.SetPlayerName(curPlayer.GetPlayerName())
curCache.SetLV(curPlayer.GetLV())
@@ -219,11 +219,10 @@
def UpdPlayerViewCacheByDB(playerID):
'''更新玩家查看缓存数据,直接从db数据更新,仅更新dbPlayer表有的属性,
'''
- GameWorld.DebugLog("UpdPlayerViewCacheByDB", playerID)
curCache = None
dbPlayer = PyMongoMain.GetUserCtrlDB().findDBPlayer(playerID)
if not dbPlayer:
- GameWorld.DebugLog("1111111111111111", playerID)
+ GameWorld.ErrLog("UpdPlayerViewCacheByDB找不到玩家!", playerID)
return curCache
viewCacheMgr = DBDataMgr.GetPlayerViewCacheMgr()
curCache = viewCacheMgr.GetPlayerViewCache(playerID)
--
Gitblit v1.8.0