| | |
| | | ("list", "AttrValue", 0),
|
| | | ),
|
| | |
|
| | | "EquipLegendAttrCount":(
|
| | | ("BYTE", "ItemType", 1),
|
| | | ("BYTE", "ItemColor", 1),
|
| | | ("BYTE", "IsSuit", 1),
|
| | | ("BYTE", "FixedLegendAttrCount", 0),
|
| | | ("BYTE", "GoodLegendAttrCount", 0),
|
| | | ("BYTE", "OtherLegendAttrCount", 0),
|
| | | ),
|
| | |
|
| | | "EquipLegendAttrType":(
|
| | | ("BYTE", "ItemType", 1),
|
| | | ("list", "FixedLegendAttrList", 0),
|
| | | ("list", "GoodLegendAttrList", 0),
|
| | | ("list", "CommLegendAttrList", 0),
|
| | | ),
|
| | |
|
| | | "EquipLegendAttrLib":(
|
| | | ("BYTE", "LegendAttrID", 1),
|
| | | ("dict", "LegendAttrLib", 0),
|
| | | ),
|
| | |
|
| | | "EquipLegendAttrValue":(
|
| | | ("BYTE", "ItemType", 1),
|
| | | ("BYTE", "ItemClassLV", 1),
|
| | | ("BYTE", "ItemColor", 1),
|
| | | ("BYTE", "IsSuit", 1),
|
| | | ("dict", "LVLegendAttrLibNumInfo", 0),
|
| | | ),
|
| | |
|
| | | "Dogz":(
|
| | | ("BYTE", "DogzID", 1),
|
| | | ("list", "BaseAttrTypes", 0),
|
| | |
| | | def GetStarsNeed(self): return self.StarsNeed # 全身星数
|
| | | def GetAttrType(self): return self.AttrType # 属性类型
|
| | | def GetAttrValue(self): return self.AttrValue # 属性值 |
| | | |
| | | # 装备传奇属性条数表 |
| | | class IPY_EquipLegendAttrCount(): |
| | | |
| | | def __init__(self): |
| | | self.ItemType = 0
|
| | | self.ItemColor = 0
|
| | | self.IsSuit = 0
|
| | | self.FixedLegendAttrCount = 0
|
| | | self.GoodLegendAttrCount = 0
|
| | | self.OtherLegendAttrCount = 0 |
| | | return |
| | | |
| | | def GetItemType(self): return self.ItemType # 物品类型
|
| | | def GetItemColor(self): return self.ItemColor # 物品颜色
|
| | | def GetIsSuit(self): return self.IsSuit # 是否套装
|
| | | def GetFixedLegendAttrCount(self): return self.FixedLegendAttrCount # 固定传奇属性条数
|
| | | def GetGoodLegendAttrCount(self): return self.GoodLegendAttrCount # 追求传奇属性保底条数
|
| | | def GetOtherLegendAttrCount(self): return self.OtherLegendAttrCount # 其他随机传奇属性条数 |
| | | |
| | | # 装备传奇属性类型表 |
| | | class IPY_EquipLegendAttrType(): |
| | | |
| | | def __init__(self): |
| | | self.ItemType = 0
|
| | | self.FixedLegendAttrList = []
|
| | | self.GoodLegendAttrList = []
|
| | | self.CommLegendAttrList = [] |
| | | return |
| | | |
| | | def GetItemType(self): return self.ItemType # 物品类型
|
| | | def GetFixedLegendAttrList(self): return self.FixedLegendAttrList # 固定传奇属性列表
|
| | | def GetGoodLegendAttrList(self): return self.GoodLegendAttrList # 追求传奇属性列表
|
| | | def GetCommLegendAttrList(self): return self.CommLegendAttrList # 一般传奇属性列表 |
| | | |
| | | # 装备传奇属性值库表 |
| | | class IPY_EquipLegendAttrLib(): |
| | | |
| | | def __init__(self): |
| | | self.LegendAttrID = 0
|
| | | self.LegendAttrLib = {} |
| | | return |
| | | |
| | | def GetLegendAttrID(self): return self.LegendAttrID # 传奇属性ID
|
| | | def GetLegendAttrLib(self): return self.LegendAttrLib # 属性库信息 {库编号:[随机数值, ...], ...} |
| | | |
| | | # 装备传奇属性等级数值表 |
| | | class IPY_EquipLegendAttrValue(): |
| | | |
| | | def __init__(self): |
| | | self.ItemType = 0
|
| | | self.ItemClassLV = 0
|
| | | self.ItemColor = 0
|
| | | self.IsSuit = 0
|
| | | self.LVLegendAttrLibNumInfo = {} |
| | | return |
| | | |
| | | def GetItemType(self): return self.ItemType # 物品类型
|
| | | def GetItemClassLV(self): return self.ItemClassLV # 物品阶级
|
| | | def GetItemColor(self): return self.ItemColor # 物品颜色
|
| | | def GetIsSuit(self): return self.IsSuit # 是否套装
|
| | | def GetLVLegendAttrLibNumInfo(self): return self.LVLegendAttrLibNumInfo # 属性ID等级段对应数值库编号 {属性ID:{等级:库编号, ...}} |
| | | |
| | | # 神兽表 |
| | | class IPY_Dogz(): |
| | |
| | | self.ipyItemPlusSumAttrLen = len(self.ipyItemPlusSumAttrCache)
|
| | | self.ipyRoleEquipStarsCache = self.__LoadFileData("RoleEquipStars", IPY_RoleEquipStars)
|
| | | self.ipyRoleEquipStarsLen = len(self.ipyRoleEquipStarsCache)
|
| | | self.ipyEquipLegendAttrCountCache = self.__LoadFileData("EquipLegendAttrCount", IPY_EquipLegendAttrCount)
|
| | | self.ipyEquipLegendAttrCountLen = len(self.ipyEquipLegendAttrCountCache)
|
| | | self.ipyEquipLegendAttrTypeCache = self.__LoadFileData("EquipLegendAttrType", IPY_EquipLegendAttrType)
|
| | | self.ipyEquipLegendAttrTypeLen = len(self.ipyEquipLegendAttrTypeCache)
|
| | | self.ipyEquipLegendAttrLibCache = self.__LoadFileData("EquipLegendAttrLib", IPY_EquipLegendAttrLib)
|
| | | self.ipyEquipLegendAttrLibLen = len(self.ipyEquipLegendAttrLibCache)
|
| | | self.ipyEquipLegendAttrValueCache = self.__LoadFileData("EquipLegendAttrValue", IPY_EquipLegendAttrValue)
|
| | | self.ipyEquipLegendAttrValueLen = len(self.ipyEquipLegendAttrValueCache)
|
| | | self.ipyDogzCache = self.__LoadFileData("Dogz", IPY_Dogz)
|
| | | self.ipyDogzLen = len(self.ipyDogzCache)
|
| | | self.ipyDogzEquipPlusCache = self.__LoadFileData("DogzEquipPlus", IPY_DogzEquipPlus)
|
| | |
| | | def GetItemPlusSumAttrByIndex(self, index): return self.ipyItemPlusSumAttrCache[index]
|
| | | def GetRoleEquipStarsCount(self): return self.ipyRoleEquipStarsLen
|
| | | def GetRoleEquipStarsByIndex(self, index): return self.ipyRoleEquipStarsCache[index]
|
| | | def GetEquipLegendAttrCountCount(self): return self.ipyEquipLegendAttrCountLen
|
| | | def GetEquipLegendAttrCountByIndex(self, index): return self.ipyEquipLegendAttrCountCache[index]
|
| | | def GetEquipLegendAttrTypeCount(self): return self.ipyEquipLegendAttrTypeLen
|
| | | def GetEquipLegendAttrTypeByIndex(self, index): return self.ipyEquipLegendAttrTypeCache[index]
|
| | | def GetEquipLegendAttrLibCount(self): return self.ipyEquipLegendAttrLibLen
|
| | | def GetEquipLegendAttrLibByIndex(self, index): return self.ipyEquipLegendAttrLibCache[index]
|
| | | def GetEquipLegendAttrValueCount(self): return self.ipyEquipLegendAttrValueLen
|
| | | def GetEquipLegendAttrValueByIndex(self, index): return self.ipyEquipLegendAttrValueCache[index]
|
| | | def GetDogzCount(self): return self.ipyDogzLen
|
| | | def GetDogzByIndex(self, index): return self.ipyDogzCache[index]
|
| | | def GetDogzEquipPlusCount(self): return self.ipyDogzEquipPlusLen
|