From c15c8f7eab589727de0195c40862e9afe08e890b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 20 三月 2019 18:23:37 +0800
Subject: [PATCH] 6373 【后端】【2.0】删除无用功能代码、封包、配置(页游特惠活动相关)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_AllFamilyBoss.py |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_AllFamilyBoss.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_AllFamilyBoss.py
index 472774c..4a139a2 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_AllFamilyBoss.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_AllFamilyBoss.py
@@ -44,7 +44,8 @@
 (
     Def_BossTime,  #BOSS时间
     Def_LeaveTime,  #离开时间
-    ) = range(2)
+    Def_HPSpeed,  #掉血速度公式
+    ) = range(3)
 
 #当前副本地图的状态
 (
@@ -158,9 +159,9 @@
             FBCommon.SetFBStep(FB_Step_Fighting, tick)
 
         EventReport.WriteEvent_FB(curPlayer, ChConfig.Def_FBMapID_AllFamilyBoss, 0, ChConfig.CME_Log_Start)
-        if fbStep >= FB_Step_Over:
-            PlayerControl.PlayerLeaveFB(curPlayer)
-            return
+    if fbStep >= FB_Step_Over:
+        PlayerControl.PlayerLeaveFB(curPlayer)
+        return
 
     if familyID not in PyGameData.g_allfamilyBossDict:
         PyGameData.g_allfamilyBossDict[familyID] = [curPlayer.GetFamilyName(), 0, [playerID]]
@@ -441,8 +442,8 @@
             curPlayer = playerManager.GetPlayerByIndex(index)
             if not curPlayer:
                 continue
-            member.Sync_TimeTick(IPY_GameWorld.tttLeaveMap, 0, leaveTick, True)
-            FBCommon.NotifyFBOver(member, ChConfig.Def_FBMapID_AllFamilyBoss, lineID, isPass)
+            curPlayer.Sync_TimeTick(IPY_GameWorld.tttLeaveMap, 0, leaveTick, True)
+            FBCommon.NotifyFBOver(curPlayer, ChConfig.Def_FBMapID_AllFamilyBoss, lineID, isPass)
   
     return
 
@@ -518,8 +519,9 @@
     lineID = GameWorld.GetGameWorld().GetPropertyID() - 1
     if lineID < 0:
         return
-
-    curSpeed = int(min(1 + 0.08 * (playerCnt - 1), 1.8) * 1000)
+    
+    
+    curSpeed = eval(FBCommon.GetFBLineStepTime(ChConfig.Def_FBMapID_AllFamilyBoss, lineID)[Def_HPSpeed])
     gameWorld.SetGameWorldDict(FBDict_Speed, curSpeed)
     if not gameWorld.GetGameWorldDictByKey(FBDict_IsReduceing):
         return

--
Gitblit v1.8.0