From 9be7aeecd0db37fc4d426c8cad852c7d900a35db Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 02 八月 2021 14:22:23 +0800 Subject: [PATCH] 8585 【主干】【BT2】【BT3】【后端】竞技场(修改为胜负全部由前端发包决定;查看玩家增加同步攻击回血属性) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py | 31 +++++++++++++++---------------- 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py index 5d3ce1f..6dff9b9 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py @@ -194,13 +194,12 @@ return isWin = 1 if result == 1 else 0 - # 木桩被击杀,后端判断,其他前端同步 - if isWin: - GameWorld.ErrLog("前端不能同步竞技场胜利状态!", playerID) - return +# # 木桩被击杀,后端判断,其他前端同步 +# if isWin: +# GameWorld.ErrLog("前端不能同步竞技场胜利状态!", playerID) +# return recTagPlayerID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ArenaBattleTagID) - GameWorld.DebugLog("竞技场被对手击杀! tagPlayerID=%s,recTagPlayerID=%s" % (tagPlayerID, recTagPlayerID), playerID) if tagPlayerID != recTagPlayerID: GameWorld.ErrLog("竞技场结算时对手ID不一致! tagPlayerID(%s) != recTagPlayerID(%s)" % (tagPlayerID, recTagPlayerID), playerID) __DoArenaBattleOver(curPlayer) @@ -211,17 +210,17 @@ return def OnKillBattleNPC(curPlayer, curNPC): - ## 击杀对手,前端本,使用木桩NPC作为对手 - - if curNPC.GetGameObjType() != IPY_GameWorld.gotNPC or curNPC.GetType() not in [ChConfig.ntPriWoodPilePVE, ChConfig.ntPriWoodPilePVP]: - GameWorld.DebugLog("击杀非木桩NPC,不结算!") - return - - # 胜利结算入口:后端验证击杀对手 - tagPlayerID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ArenaBattleTagID) - GameWorld.DebugLog("竞技场击杀对手! tagPlayerID=%s" % tagPlayerID, curPlayer.GetPlayerID()) - isWin = 1 - SendGameServer_ArenaBattleOver(curPlayer, isWin) +# ## 击杀对手,前端本,使用木桩NPC作为对手 +# +# if curNPC.GetGameObjType() != IPY_GameWorld.gotNPC or curNPC.GetType() not in [ChConfig.ntPriWoodPilePVE, ChConfig.ntPriWoodPilePVP]: +# GameWorld.DebugLog("击杀非木桩NPC,不结算!") +# return +# +# # 胜利结算入口:后端验证击杀对手 +# tagPlayerID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ArenaBattleTagID) +# GameWorld.DebugLog("竞技场击杀对手! tagPlayerID=%s" % tagPlayerID, curPlayer.GetPlayerID()) +# isWin = 1 +# SendGameServer_ArenaBattleOver(curPlayer, isWin) return def SendGameServer_ArenaBattleOver(curPlayer, isWin): -- Gitblit v1.8.0