From bbca9a1da57c089959d1cf7384813d245290ff23 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期一, 21 一月 2019 14:04:54 +0800 Subject: [PATCH] 5924 【后端】【1.5.100】诛仙Boss功能(初版) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCustomRefresh.py | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCustomRefresh.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCustomRefresh.py index a86f294..6e0c400 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCustomRefresh.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCustomRefresh.py @@ -17,6 +17,7 @@ import ShareDefine import ReadChConfig import GameLogic_SealDemon +import GameLogic_ZhuXianBoss import PlayerControl import IPY_GameWorld import IpyGameDataPY @@ -401,6 +402,9 @@ if mapID == ChConfig.Def_FBMapID_SealDemon: bossID = GameLogic_SealDemon.CurFBLineBOSSID() stoneNPCID = 0 + elif mapID == ChConfig.Def_FBMapID_ZhuXianBoss: + bossID = GameLogic_ZhuXianBoss.CurFBLineBOSSID() + stoneNPCID = 0 else: ipyData = IpyGameDataPY.GetIpyGameDataByCondition('BOSSInfo', {'RefreshMark':refreshMark, 'MapID':mapID}, isLogNone=False) if not ipyData: @@ -412,7 +416,6 @@ isNeedShunt = ipyData.GetIsNeedShunt() if not bossID and not stoneNPCID: return - gameFB = GameWorld.GetGameFB() gameWorldMgr = GameWorld.GetGameWorld() isActivityBoss = False # 是否活动boss @@ -463,7 +466,7 @@ NPCCommon.SetDeadEx(curNPC) # 非复活线 且 不需要分流的地图 且 不是封魔坛 不允许复活 - if lineID != rebornLineID and not isNeedShunt and mapID != ChConfig.Def_FBMapID_SealDemon: + if lineID != rebornLineID and not isNeedShunt and mapID not in [ChConfig.Def_FBMapID_SealDemon, ChConfig.Def_FBMapID_ZhuXianBoss]: return if isActivityBoss and activityBossRebornCount > 0: -- Gitblit v1.8.0