From ac448ba660cafdba69ca409b45942dbad57f5732 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 09 十月 2020 16:40:43 +0800 Subject: [PATCH] 8533 【BT】【后端】宗门试炼助战修(增加可配置至多机器人人数、是否出现非社交关系玩家) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBHelpBattle.py | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBHelpBattle.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBHelpBattle.py index 3ed7a04..449c1c7 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBHelpBattle.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBHelpBattle.py @@ -178,10 +178,11 @@ for robotID in helpNPCRobotIDList[:lackCount]: calledPlayerDict[robotID] = 0 - if calledCount + len(calledPlayerDict) < maxHelpPlayerCount: - GameWorld.ErrLog("无法一键召唤!人数不足! calledCount=%s,calledPlayerDict=%s,maxHelpPlayerCount=%s" - % (calledCount, calledPlayerDict, maxHelpPlayerCount), playerID) - return +# 修改了规则,无社交人数及机器人人数做了限制,所以可能出现人数不足的情况,故屏蔽此判断 +# if calledCount + len(calledPlayerDict) < maxHelpPlayerCount: +# GameWorld.ErrLog("无法一键召唤!人数不足! calledCount=%s,calledPlayerDict=%s,maxHelpPlayerCount=%s" +# % (calledCount, calledPlayerDict, maxHelpPlayerCount), playerID) +# return else: if calledPlayerID not in helpBattlePlayerDict: GameWorld.ErrLog("不存在该助战玩家,无法召唤!calledPlayerID=%s" % (calledPlayerID), playerID) @@ -241,7 +242,7 @@ NetPackCommon.SendFakePack(curPlayer, callResultPack) # 召唤满后 - if calledCount >= maxHelpPlayerCount: + if calledCount >= len(helpBattlePlayerDict) or calledCount >= maxHelpPlayerCount: FBLogic.OnCallHelpBattleOK(curPlayer, tick) # 通知GameServer -- Gitblit v1.8.0