From 254193aa2af834a522c6847b6b85250427563961 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 12 四月 2019 10:34:20 +0800 Subject: [PATCH] 6459 【后端】【2.0】缥缈仙域开发单(增加按时间掉血的NPC支持) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py index 22f6cae..0c592e0 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py @@ -333,6 +333,13 @@ ("DWORD", "FightPowerCoefficient", 0), ), + "NPCTimeLostHP":( + ("DWORD", "NPCID", 1), + ("DWORD", "LostHPPerSecond", 0), + ("BYTE", "MaxPlayerCount", 0), + ("DWORD", "ReduceRate", 0), + ), + "EquipSuitAttr":( ("WORD", "SuiteID", 1), ("BYTE", "SuiteCnt", 0), @@ -2039,6 +2046,21 @@ def GetIceDefCoefficient(self): return self.IceDefCoefficient # 元素抗性比例 def GetMaxEnduranceTime(self): return self.MaxEnduranceTime # 玩家最大承受伤害时间 def GetFightPowerCoefficient(self): return self.FightPowerCoefficient # 压制战斗力系数 + +# NPC时间掉血表 +class IPY_NPCTimeLostHP(): + + def __init__(self): + self.NPCID = 0 + self.LostHPPerSecond = 0 + self.MaxPlayerCount = 0 + self.ReduceRate = 0 + return + + def GetNPCID(self): return self.NPCID # NPCID + def GetLostHPPerSecond(self): return self.LostHPPerSecond # 单人每秒掉血量 + def GetMaxPlayerCount(self): return self.MaxPlayerCount # 最大人数 + def GetReduceRate(self): return self.ReduceRate # 衰减万分率 # 装备套装属性表 class IPY_EquipSuitAttr(): @@ -4385,6 +4407,8 @@ self.ipyGMAttrLen = len(self.ipyGMAttrCache) self.ipyNPCStrengthenCache = self.__LoadFileData("NPCStrengthen", IPY_NPCStrengthen) self.ipyNPCStrengthenLen = len(self.ipyNPCStrengthenCache) + self.ipyNPCTimeLostHPCache = self.__LoadFileData("NPCTimeLostHP", IPY_NPCTimeLostHP) + self.ipyNPCTimeLostHPLen = len(self.ipyNPCTimeLostHPCache) self.ipyEquipSuitAttrCache = self.__LoadFileData("EquipSuitAttr", IPY_EquipSuitAttr) self.ipyEquipSuitAttrLen = len(self.ipyEquipSuitAttrCache) self.ipyWingRefineAttrCache = self.__LoadFileData("WingRefineAttr", IPY_WingRefineAttr) @@ -4837,6 +4861,8 @@ def GetGMAttrByIndex(self, index): return self.ipyGMAttrCache[index] def GetNPCStrengthenCount(self): return self.ipyNPCStrengthenLen def GetNPCStrengthenByIndex(self, index): return self.ipyNPCStrengthenCache[index] + def GetNPCTimeLostHPCount(self): return self.ipyNPCTimeLostHPLen + def GetNPCTimeLostHPByIndex(self, index): return self.ipyNPCTimeLostHPCache[index] def GetEquipSuitAttrCount(self): return self.ipyEquipSuitAttrLen def GetEquipSuitAttrByIndex(self, index): return self.ipyEquipSuitAttrCache[index] def GetWingRefineAttrCount(self): return self.ipyWingRefineAttrLen -- Gitblit v1.8.0