ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_HorsePetBoss.py
@@ -36,6 +36,8 @@
FBDict_IsOver = 'FBDict_IsOver' #是否已结算, 结算时的tick
Map_FB_StartTick = 'Map_FB_StartTick' #活动开始时间
Map_SightLevelCounter = 'Map_SightLevelCounter' #视野层级人数计数器
(
Def_BossTime,  #BOSS时间
Def_LeaveTime,  #离开时间
@@ -105,6 +107,7 @@
    if state:
        if not GameWorld.GetGameWorld().GetGameWorldDictByKey(Map_FB_StartTick):
            GameWorld.GetGameWorld().SetGameWorldDict(Map_FB_StartTick, tick)
        GameWorld.GetGameWorld().SetGameWorldDict(Map_SightLevelCounter, 0)
    else:
        GameWorld.GetGameWorld().SetGameWorldDict(Map_FB_StartTick, 0)
        if GameWorld.GetGameFB().GetFBStep() == FB_Step_Fighting:
@@ -148,7 +151,14 @@
        if fbStep == FB_Step_Open:
            FBCommon.SetFBStep(FB_Step_Fighting, tick)
    UpdateHurtInfo(curPlayer, 0, True)
    sightPlayerCount = IpyGameDataPY.GetFuncCfg("HorsePetBOSSSight", 1)
    counter = GameWorld.GetGameWorld().GetGameWorldDictByKey(Map_SightLevelCounter) + 1
    GameWorld.GetGameWorld().SetGameWorldDict(Map_SightLevelCounter, counter)
    sightLevel = (counter - 1) / sightPlayerCount + 10 # 自定义视野层级从10开始,1为公共视野层
    PlayerControl.SetPlayerSightLevel(curPlayer, sightLevel)
    GameWorld.DebugLog("counter=%s,SetPlayerSightLevel=%s" % (counter, sightLevel), playerID)
    gameFB = GameWorld.GetGameFB()
    # 上鼓舞buff
    encourageLV = gameFB.GetPlayerGameFBDictByKey(playerID, FBPlayerDict_EncourageLV)
@@ -446,6 +456,14 @@
    GameWorld.GetGameFB().SetGameFBDict(FBDict_IsOver, tick)
    return
def DoFBRebornNPC(curNPC, tick):
    ##副本有NPC召出
    lineID = GameWorld.GetGameWorld().GetPropertyID() - 1
    bossID = CurFBLineBOSSID(lineID)
    if curNPC.GetNPCID() == bossID:
        curNPC.SetSightLevel(ChConfig.SightLevel_Public) # 设置boss为公共视野层级
    return
def GetBossRemainHPPer(copyMapID, funcLineID, tick):
    bossID = CurFBLineBOSSID(funcLineID)