From f0f101d1d778e26a2e3ecd368c90c8f52a7ea011 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 13 六月 2019 11:11:44 +0800 Subject: [PATCH] 7220 【后端】【2.0】灵器开发1.0版(删除绝版属性,原绝版属性转移到灵器属性) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py | 39 +++++++++++++++++++++++++++++++-------- 1 files changed, 31 insertions(+), 8 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py index d765ac4..2ca6b65 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py @@ -49,6 +49,13 @@ ("list", "PointQualityIntervalList", 0), ), + "LingQiAttr":( + ("BYTE", "ItemID", 1), + ("list", "LingQiAttrID", 0), + ("list", "LingQiAttrValue", 0), + ("DWORD", "LingQiAttrScore", 0), + ), + "Realm":( ("WORD", "Lv", 1), ("DWORD", "NeedLV", 0), @@ -422,6 +429,7 @@ ("dict", "EquipColorMaxDropCount", 0), ("dict", "EquipColorSuitInfo", 0), ("dict", "EquipPartKeyRateInfo", 0), + ("BYTE", "ColorSuitPartOptimization", 0), ("dict", "KillCountDropEquipPub", 0), ("dict", "ItemIDDropRate", 0), ("dict", "ItemIDMaxDropCount", 0), @@ -612,8 +620,6 @@ ("BYTE", "CancelUseLimit", 0), ("list", "LegendAttrID", 0), ("list", "LegendAttrValue", 0), - ("list", "OutOfPrintAttr", 0), - ("list", "OutOfPrintAttrValue", 0), ), "AuctionItem":( @@ -1504,6 +1510,21 @@ def GetPointQualityAttrDict(self): return self.PointQualityAttrDict # 点数品质进阶增加属性, {职业:{属性ID:[阶段属性,..],..},..} def GetPointQualityIntervalList(self): return self.PointQualityIntervalList # 点数品质进阶属性点区间列表 +# 灵器属性表 +class IPY_LingQiAttr(): + + def __init__(self): + self.ItemID = 0 + self.LingQiAttrID = [] + self.LingQiAttrValue = [] + self.LingQiAttrScore = 0 + return + + def GetItemID(self): return self.ItemID # 属性ID + def GetLingQiAttrID(self): return self.LingQiAttrID # 灵器属性ID + def GetLingQiAttrValue(self): return self.LingQiAttrValue # 灵器属性数值 + def GetLingQiAttrScore(self): return self.LingQiAttrScore # 灵器属性评分 + # 境界表 class IPY_Realm(): @@ -2272,6 +2293,7 @@ self.EquipColorMaxDropCount = {} self.EquipColorSuitInfo = {} self.EquipPartKeyRateInfo = {} + self.ColorSuitPartOptimization = 0 self.KillCountDropEquipPub = {} self.ItemIDDropRate = {} self.ItemIDMaxDropCount = {} @@ -2300,6 +2322,7 @@ def GetEquipColorMaxDropCount(self): return self.EquipColorMaxDropCount # 装备颜色最大掉落物品数 {颜色:上限数量,...} def GetEquipColorSuitInfo(self): return self.EquipColorSuitInfo # 装备颜色对应套装概率 {颜色:套装概率, ...} def GetEquipPartKeyRateInfo(self): return self.EquipPartKeyRateInfo # 装备部位集合信息 {(颜色,是否套装):部位集合key, ...} + def GetColorSuitPartOptimization(self): return self.ColorSuitPartOptimization # 部位颜色套评分优选掉落,十位代表颜色,个位代表套装 def GetKillCountDropEquipPub(self): return self.KillCountDropEquipPub # 第x次击杀附加必掉装备 {次数:[阶,颜色,是否套装,部位集合key], ...} def GetItemIDDropRate(self): return self.ItemIDDropRate # 指定物品ID掉率信息 {物品ID:概率, ...} def GetItemIDMaxDropCount(self): return self.ItemIDMaxDropCount # 指定物品ID最大掉落个数,没配默认1次 {物品ID:随机次数,...} @@ -2673,18 +2696,14 @@ self.SuiteLV = 0 self.CancelUseLimit = 0 self.LegendAttrID = [] - self.LegendAttrValue = [] - self.OutOfPrintAttr = [] - self.OutOfPrintAttrValue = [] + self.LegendAttrValue = [] return def GetID(self): return self.ID # 定制物品ID def GetSuiteLV(self): return self.SuiteLV # 套装等级 def GetCancelUseLimit(self): return self.CancelUseLimit # 穿戴限制(除职业) def GetLegendAttrID(self): return self.LegendAttrID # 传奇属性ID - def GetLegendAttrValue(self): return self.LegendAttrValue # 传奇属性值 - def GetOutOfPrintAttr(self): return self.OutOfPrintAttr # 绝版属性ID - def GetOutOfPrintAttrValue(self): return self.OutOfPrintAttrValue # 绝版属性最大值 + def GetLegendAttrValue(self): return self.LegendAttrValue # 传奇属性值 # 拍卖物品表 class IPY_AuctionItem(): @@ -4513,6 +4532,8 @@ self.ipyDienstgradLen = len(self.ipyDienstgradCache) self.ipyRolePointCache = self.__LoadFileData("RolePoint", IPY_RolePoint) self.ipyRolePointLen = len(self.ipyRolePointCache) + self.ipyLingQiAttrCache = self.__LoadFileData("LingQiAttr", IPY_LingQiAttr) + self.ipyLingQiAttrLen = len(self.ipyLingQiAttrCache) self.ipyRealmCache = self.__LoadFileData("Realm", IPY_Realm) self.ipyRealmLen = len(self.ipyRealmCache) self.ipyGodWeaponCache = self.__LoadFileData("GodWeapon", IPY_GodWeapon) @@ -4977,6 +4998,8 @@ def GetDienstgradByIndex(self, index): return self.ipyDienstgradCache[index] def GetRolePointCount(self): return self.ipyRolePointLen def GetRolePointByIndex(self, index): return self.ipyRolePointCache[index] + def GetLingQiAttrCount(self): return self.ipyLingQiAttrLen + def GetLingQiAttrByIndex(self, index): return self.ipyLingQiAttrCache[index] def GetRealmCount(self): return self.ipyRealmLen def GetRealmByIndex(self, index): return self.ipyRealmCache[index] def GetGodWeaponCount(self): return self.ipyGodWeaponLen -- Gitblit v1.8.0