From 0f297a5b66b91751d8342624db871efeca7ed94e Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期六, 02 三月 2019 10:20:48 +0800 Subject: [PATCH] 6307 【后端】【2.0】多套装备开发单(穿脱、升星) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py | 67 +++++++++++++++++++++++++++++++++ 1 files changed, 67 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 fb00bb8..dcbe4b3 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py @@ -1372,6 +1372,25 @@ ("list", "LVRange", 0), ("DWORD", "GoodsID", 0), ), + + "EquipPlaceIndexMap":( + ("DWORD", "GridIndex", 0), + ("DWORD", "ClassLV", 1), + ("DWORD", "EquipPlace", 1), + ), + + "EquipStarUp":( + ("BYTE", "ClassLV", 1), + ("BYTE", "EquipPlace", 1), + ("BYTE", "Star", 1), + ("list", "CostEquipPlace", 0), + ("list", "CostEquipColor", 0), + ("BYTE", "CostEquipCnt", 0), + ("BYTE", "SuitTotalRate", 0), + ("dict", "CostItemDict", 0), + ("dict", "StarAttrInfo", 0), + ("dict", "BaseAttrInfo", 0), + ), } @@ -4190,6 +4209,46 @@ def GetLVRange(self): return self.LVRange # 等级范围 def GetGoodsID(self): return self.GoodsID # 商城表ID + +# 装备位背包索引映射表 +class IPY_EquipPlaceIndexMap(): + + def __init__(self): + self.GridIndex = 0 + self.ClassLV = 0 + self.EquipPlace = 0 + return + + def GetGridIndex(self): return self.GridIndex # 背包格子索引 + def GetClassLV(self): return self.ClassLV # 阶级(物品表LV字段) + def GetEquipPlace(self): return self.EquipPlace # 装备位(物品表EquipPlace字段) + +# 装备升星表 +class IPY_EquipStarUp(): + + def __init__(self): + self.ClassLV = 0 + self.EquipPlace = 0 + self.Star = 0 + self.CostEquipPlace = [] + self.CostEquipColor = [] + self.CostEquipCnt = 0 + self.SuitTotalRate = 0 + self.CostItemDict = {} + self.StarAttrInfo = {} + self.BaseAttrInfo = {} + return + + def GetClassLV(self): return self.ClassLV # 阶级 + def GetEquipPlace(self): return self.EquipPlace # 装备位 + def GetStar(self): return self.Star # 星数 + def GetCostEquipPlace(self): return self.CostEquipPlace # 可用装备部位 + def GetCostEquipColor(self): return self.CostEquipColor # 可用装备品质 + def GetCostEquipCnt(self): return self.CostEquipCnt # 装备数量 + def GetSuitTotalRate(self): return self.SuitTotalRate # 全套装加成概率(非套50%) + def GetCostItemDict(self): return self.CostItemDict # 特殊材料 + def GetStarAttrInfo(self): return self.StarAttrInfo # 星级属性 + def GetBaseAttrInfo(self): return self.BaseAttrInfo # 基础属性增加 def Log(msg, playerID=0, par=0): @@ -4483,6 +4542,10 @@ self.ipyLuckyTreasureTemplateLen = len(self.ipyLuckyTreasureTemplateCache) self.ipyMysteryShopCache = self.__LoadFileData("MysteryShop", IPY_MysteryShop) self.ipyMysteryShopLen = len(self.ipyMysteryShopCache) + self.ipyEquipPlaceIndexMapCache = self.__LoadFileData("EquipPlaceIndexMap", IPY_EquipPlaceIndexMap) + self.ipyEquipPlaceIndexMapLen = len(self.ipyEquipPlaceIndexMapCache) + self.ipyEquipStarUpCache = self.__LoadFileData("EquipStarUp", IPY_EquipStarUp) + self.ipyEquipStarUpLen = len(self.ipyEquipStarUpCache) Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict)) Log("IPY_DataMgr InitOK!") return @@ -4917,6 +4980,10 @@ def GetLuckyTreasureTemplateByIndex(self, index): return self.ipyLuckyTreasureTemplateCache[index] def GetMysteryShopCount(self): return self.ipyMysteryShopLen def GetMysteryShopByIndex(self, index): return self.ipyMysteryShopCache[index] + def GetEquipPlaceIndexMapCount(self): return self.ipyEquipPlaceIndexMapLen + def GetEquipPlaceIndexMapByIndex(self, index): return self.ipyEquipPlaceIndexMapCache[index] + def GetEquipStarUpCount(self): return self.ipyEquipStarUpLen + def GetEquipStarUpByIndex(self, index): return self.ipyEquipStarUpCache[index] IPYData = IPY_DataMgr() def IPY_Data(): return IPYData -- Gitblit v1.8.0