| | |
| | | ("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),
|
| | | ),
|
| | | }
|
| | |
|
| | | |
| | |
| | | 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):
|
| | | LogUI.Msg("%s\t%s\t%s" % (par, playerID, msg))
|
| | |
| | | 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
|
| | |
| | | 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
|