From d7b5f24468cbd7ad58735d3511d0c1f4701e47b4 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期六, 08 十二月 2018 10:30:43 +0800 Subject: [PATCH] 4581 【后端】【1.3.100】上古战场优化和分线调整——机器人AI、属性、伤害 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ElderBattlefield.py | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ElderBattlefield.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ElderBattlefield.py index 6a7f55a..a25efb3 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ElderBattlefield.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ElderBattlefield.py @@ -156,6 +156,10 @@ return curPlayer.Sync_TimeTick(IPY_GameWorld.tttTowerTake, 0, closeFB_RemainTick, True) + if not FBCommon.GetHadSetFBPropertyMark(): + lineID = GameWorld.GetGameWorld().GetPropertyID() - 1 + FBCommon.SetFBPropertyMark(lineID) + if not FBCommon.GetHadDelTicket(curPlayer): FBCommon.SetHadDelTicket(curPlayer) if FBCommon.AddEnterFBCount(curPlayer, ChConfig.Def_FBMapID_ElderBattlefield): @@ -202,6 +206,7 @@ skillBuffID = IpyGameDataPY.GetFuncCfg('ElderBattlefieldRobot', 3) BuffSkill.DelBuffBySkillID(curPlayer, skillBuffID, tick) + FBCommon.UpdFBLineNPCStrengthenLV(curPlayer.GetPlayerID(), True) return @@ -306,6 +311,10 @@ robotCfgDict = IpyGameDataPY.GetFuncEvalCfg('ElderBattlefieldCfg', 3, {}) lineID = GameWorld.GetGameWorld().GetPropertyID() - 1 if lineID not in robotCfgDict: + return + robotMaxLV = gameFB.GetGameFBDictByKey(ChConfig.Def_FB_NPCStrengthenMaxLV) + if GameWorld.GetMapCopyPlayerManager().GetPlayerCount() <= 0 or not robotMaxLV: + #GameWorld.DebugLog("没玩家,不刷机器人! ") return rmarkList = IpyGameDataPY.GetFuncEvalCfg('ElderBattlefieldRobot', 5) curNPCCnt = 0 @@ -463,6 +472,7 @@ # @remarks 用于通知阵营比分条 def DoFBHelp(curPlayer, tick): gameWorld = GameWorld.GetGameWorld() + lineID = gameWorld.GetLineID() playerID = curPlayer.GetPlayerID() score = gameWorld.GetGameWorldDictByKey(FBPlayerDict_Score % playerID) stageScoreList = IpyGameDataPY.GetFuncEvalCfg('ElderBattlefieldCfg', 4) @@ -482,6 +492,7 @@ helpDict['topPlayerID'] = topPlayerID #helpDict[FBCommon.Help_lineID] = GameWorld.GetGameWorld().GetLineID() helpDict['enemyID'] = GameWorld.GetGameFB().GetPlayerGameFBDictByKey(playerID, FBPlayerDict_EnemyID) + helpDict[FBCommon.Help_robotJob] = PyGameData.g_fbRobotJobDict.get(lineID, {}) GameWorld.DebugLog("DoFBHelp %s" % helpDict, playerID) FBCommon.Notify_FBHelp(curPlayer, helpDict) return -- Gitblit v1.8.0