From 35c596a6ed34680d9af09788274051c1c212d4eb Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 07 七月 2025 15:05:03 +0800 Subject: [PATCH] 129 【战斗】战斗系统-服务端(优化战斗武将跟NPC独立处理;去除程序无技能普攻,增加反击普攻;新增回合主动普攻技能功能类型23;) --- 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