| | |
| | | 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)
|
| | |
| | | NetPackCommon.SendFakePack(curPlayer, callResultPack)
|
| | |
|
| | | # 召唤满后
|
| | | if calledCount >= maxHelpPlayerCount:
|
| | | if calledCount >= len(helpBattlePlayerDict) or calledCount >= maxHelpPlayerCount:
|
| | | FBLogic.OnCallHelpBattleOK(curPlayer, tick)
|
| | |
|
| | | # ֪ͨGameServer
|