| | |
| | | ("DWORD", "FightPower", 0),
|
| | | ("dict", "Attr", 0),
|
| | | ),
|
| | |
|
| | | "GatherSoul":(
|
| | | ("DWORD", "ItemID", 1),
|
| | | ("list", "AttrType", 0),
|
| | | ("BYTE", "SoulGrade", 0),
|
| | | ),
|
| | |
|
| | | "GatherSoulCompound":(
|
| | | ("DWORD", "TagItemID", 1),
|
| | | ("WORD", "NeedLV", 0),
|
| | | ("list", "NeedItem", 0),
|
| | | ("WORD", "NeedSoulSplinters", 0),
|
| | | ("WORD", "NeedSoulCore", 0),
|
| | | ),
|
| | |
|
| | | "GatherSoulAttr":(
|
| | | ("WORD", "AttrType", 1),
|
| | | ("char", "AttrInfo1", 0),
|
| | | ("dict", "AttrInfo2", 0),
|
| | | ("dict", "AttrInfo3", 0),
|
| | | ("dict", "AttrInfo4", 0),
|
| | | ("dict", "AttrInfo5", 0),
|
| | | ),
|
| | | }
|
| | |
|
| | | |
| | |
| | | def GetNotifyCode(self): return self.NotifyCode # 广播
|
| | | def GetFightPower(self): return self.FightPower # 增加战力
|
| | | def GetAttr(self): return self.Attr # 属性加成 |
| | | |
| | | # 聚魂表 |
| | | class IPY_GatherSoul(): |
| | | |
| | | def __init__(self): |
| | | self.ItemID = 0
|
| | | self.AttrType = []
|
| | | self.SoulGrade = 0 |
| | | return |
| | | |
| | | def GetItemID(self): return self.ItemID # 物品ID
|
| | | def GetAttrType(self): return self.AttrType # 属性类型
|
| | | def GetSoulGrade(self): return self.SoulGrade # 魂阶段 |
| | | |
| | | # 聚魂合成表 |
| | | class IPY_GatherSoulCompound(): |
| | | |
| | | def __init__(self): |
| | | self.TagItemID = 0
|
| | | self.NeedLV = 0
|
| | | self.NeedItem = []
|
| | | self.NeedSoulSplinters = 0
|
| | | self.NeedSoulCore = 0 |
| | | return |
| | | |
| | | def GetTagItemID(self): return self.TagItemID # 合成的物品ID
|
| | | def GetNeedLV(self): return self.NeedLV # 需要的玩家等级
|
| | | def GetNeedItem(self): return self.NeedItem # 需要的物品ID
|
| | | def GetNeedSoulSplinters(self): return self.NeedSoulSplinters # 需要的聚魂碎片
|
| | | def GetNeedSoulCore(self): return self.NeedSoulCore # 需要的核心环 |
| | | |
| | | # 聚魂属性表 |
| | | class IPY_GatherSoulAttr(): |
| | | |
| | | def __init__(self): |
| | | self.AttrType = 0
|
| | | self.AttrInfo1 = ""
|
| | | self.AttrInfo2 = {}
|
| | | self.AttrInfo3 = {}
|
| | | self.AttrInfo4 = {}
|
| | | self.AttrInfo5 = {} |
| | | return |
| | | |
| | | def GetAttrType(self): return self.AttrType # 属性类型
|
| | | def GetAttrInfo1(self): return self.AttrInfo1 # 基础属性-参数聚魂等级level
|
| | | def GetAttrInfo2(self): return self.AttrInfo2 # 品质系数(品质_系数|…)
|
| | | def GetAttrInfo3(self): return self.AttrInfo3 # 多属性系数
|
| | | def GetAttrInfo4(self): return self.AttrInfo4 # 初始属性(品质_属性值|…)
|
| | | def GetAttrInfo5(self): return self.AttrInfo5 # 阶段系数 |
| | |
|
| | |
|
| | | def Log(msg, playerID=0, par=0):
|
| | |
| | | self.ipyIceLodeStarAwardLen = len(self.ipyIceLodeStarAwardCache)
|
| | | self.ipyGodWeaponEffectCache = self.__LoadFileData("GodWeaponEffect", IPY_GodWeaponEffect)
|
| | | self.ipyGodWeaponEffectLen = len(self.ipyGodWeaponEffectCache)
|
| | | self.ipyGatherSoulCache = self.__LoadFileData("GatherSoul", IPY_GatherSoul)
|
| | | self.ipyGatherSoulLen = len(self.ipyGatherSoulCache)
|
| | | self.ipyGatherSoulCompoundCache = self.__LoadFileData("GatherSoulCompound", IPY_GatherSoulCompound)
|
| | | self.ipyGatherSoulCompoundLen = len(self.ipyGatherSoulCompoundCache)
|
| | | self.ipyGatherSoulAttrCache = self.__LoadFileData("GatherSoulAttr", IPY_GatherSoulAttr)
|
| | | self.ipyGatherSoulAttrLen = len(self.ipyGatherSoulAttrCache)
|
| | | Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict))
|
| | | Log("IPY_DataMgr InitOK!")
|
| | | return
|
| | |
| | | def GetIceLodeStarAwardByIndex(self, index): return self.ipyIceLodeStarAwardCache[index]
|
| | | def GetGodWeaponEffectCount(self): return self.ipyGodWeaponEffectLen
|
| | | def GetGodWeaponEffectByIndex(self, index): return self.ipyGodWeaponEffectCache[index]
|
| | | def GetGatherSoulCount(self): return self.ipyGatherSoulLen
|
| | | def GetGatherSoulByIndex(self, index): return self.ipyGatherSoulCache[index]
|
| | | def GetGatherSoulCompoundCount(self): return self.ipyGatherSoulCompoundLen
|
| | | def GetGatherSoulCompoundByIndex(self, index): return self.ipyGatherSoulCompoundCache[index]
|
| | | def GetGatherSoulAttrCount(self): return self.ipyGatherSoulAttrLen
|
| | | def GetGatherSoulAttrByIndex(self, index): return self.ipyGatherSoulAttrCache[index]
|
| | |
|
| | | IPYData = IPY_DataMgr()
|
| | | def IPY_Data(): return IPYData
|