| | |
| | | "Rune":(
|
| | | ("DWORD", "ID", 1),
|
| | | ("list", "AttrType", 0),
|
| | | ("DWORD", "TowerID", 0),
|
| | | ),
|
| | |
|
| | | "EquipWash":(
|
| | |
| | | ("BYTE", "FuncID", 0),
|
| | | ("WORD", "MaxUseCnt", 0),
|
| | | ("WORD", "RecycleMoney", 0),
|
| | | ("DWORD", "FightPowerEx", 0),
|
| | | ),
|
| | |
|
| | | "PetInfo":(
|
| | |
| | | "FBHelpBattle":(
|
| | | ("DWORD", "DataMapID", 1),
|
| | | ("BYTE", "LineID", 1),
|
| | | ("DWORD", "FightPowerMin", 0),
|
| | | ("DWORD", "RobotFightPower", 0),
|
| | | ("WORD", "RobotLV", 0),
|
| | | ("DWORD", "RobotBaseHurt", 0),
|
| | | ("WORD", "RobotHPCoefficient", 0),
|
| | | ("dict", "RobotSkillsDict", 0),
|
| | | ),
|
| | |
|
| | |
| | | ("DWORD", "ActiveMWID", 0),
|
| | | ("list", "ItemAward", 0),
|
| | | ("DWORD", "ActiveSoulID", 0),
|
| | | ("DWORD", "PowerEx", 0),
|
| | | ),
|
| | |
|
| | | "TreasurePrivilege":(
|
| | |
| | | ("WORD", "GainGoldPrize", 0),
|
| | | ("WORD", "FirstGoldPrize", 0),
|
| | | ("list", "GainItemList", 0),
|
| | | ("char", "NotifyMark", 0),
|
| | | ),
|
| | |
|
| | | "LVAward":(
|
| | |
| | | ("BYTE", "Star", 0),
|
| | | ("list", "LVLimit", 0),
|
| | | ("list", "ItemList", 0),
|
| | | ),
|
| | |
|
| | | "GodWeaponEffect":(
|
| | | ("BYTE", "GWType", 0),
|
| | | ("WORD", "Level", 0),
|
| | | ("char", "NotifyCode", 0),
|
| | | ),
|
| | | }
|
| | |
|
| | |
| | | |
| | | def __init__(self): |
| | | self.ID = 0
|
| | | self.AttrType = [] |
| | | self.AttrType = []
|
| | | self.TowerID = 0 |
| | | return |
| | | |
| | | def GetID(self): return self.ID # 编号ID
|
| | | def GetAttrType(self): return self.AttrType # 全身强化激活属性类型 |
| | | def GetAttrType(self): return self.AttrType # 属性类型
|
| | | def GetTowerID(self): return self.TowerID # 解锁符印塔编号 |
| | | |
| | | # 洗练表 |
| | | class IPY_EquipWash(): |
| | |
| | | self.ID = 0
|
| | | self.FuncID = 0
|
| | | self.MaxUseCnt = 0
|
| | | self.RecycleMoney = 0 |
| | | self.RecycleMoney = 0
|
| | | self.FightPowerEx = 0 |
| | | return |
| | | |
| | | def GetID(self): return self.ID # 物品ID
|
| | | def GetFuncID(self): return self.FuncID # 所属功能ID
|
| | | def GetMaxUseCnt(self): return self.MaxUseCnt # 最大可使用数量
|
| | | def GetRecycleMoney(self): return self.RecycleMoney # 回收货币值 |
| | | def GetRecycleMoney(self): return self.RecycleMoney # 回收货币值
|
| | | def GetFightPowerEx(self): return self.FightPowerEx # 附加战斗力 |
| | | |
| | | # 灵兽表 |
| | | class IPY_PetInfo(): |
| | |
| | | def __init__(self): |
| | | self.DataMapID = 0
|
| | | self.LineID = 0
|
| | | self.FightPowerMin = 0
|
| | | self.RobotFightPower = 0
|
| | | self.RobotLV = 0
|
| | | self.RobotBaseHurt = 0
|
| | | self.RobotHPCoefficient = 0
|
| | | self.RobotSkillsDict = {} |
| | | return |
| | | |
| | | def GetDataMapID(self): return self.DataMapID # 数据地图ID
|
| | | def GetLineID(self): return self.LineID # 功能线路ID
|
| | | def GetFightPowerMin(self): return self.FightPowerMin # 助战最低战力,也是副本保底战力
|
| | | def GetRobotFightPower(self): return self.RobotFightPower # 助战NPC战力
|
| | | def GetRobotLV(self): return self.RobotLV # 助战NPC等级
|
| | | def GetRobotBaseHurt(self): return self.RobotBaseHurt # 助战NPC保底伤害
|
| | | def GetRobotHPCoefficient(self): return self.RobotHPCoefficient # 助战NPC生命系数
|
| | | def GetRobotSkillsDict(self): return self.RobotSkillsDict # 助战NPC技能, {"职业":[技能列表], ...} |
| | | |
| | | # 副本刷怪标识点表 |
| | |
| | | self.UnLockSkill = []
|
| | | self.ActiveMWID = 0
|
| | | self.ItemAward = []
|
| | | self.ActiveSoulID = 0 |
| | | self.ActiveSoulID = 0
|
| | | self.PowerEx = 0 |
| | | return |
| | | |
| | | def GetMWID(self): return self.MWID # 法宝ID
|
| | |
| | | def GetUnLockSkill(self): return self.UnLockSkill # 解锁的技能
|
| | | def GetActiveMWID(self): return self.ActiveMWID # 激活法宝ID
|
| | | def GetItemAward(self): return self.ItemAward # 物品奖励[itemID,cnt,isbind]
|
| | | def GetActiveSoulID(self): return self.ActiveSoulID # 激活魂ID |
| | | def GetActiveSoulID(self): return self.ActiveSoulID # 激活魂ID
|
| | | def GetPowerEx(self): return self.PowerEx # 额外固定战力 |
| | | |
| | | # 法宝特权表 |
| | | class IPY_TreasurePrivilege(): |
| | |
| | | self.GainGold = 0
|
| | | self.GainGoldPrize = 0
|
| | | self.FirstGoldPrize = 0
|
| | | self.GainItemList = [] |
| | | self.GainItemList = []
|
| | | self.NotifyMark = "" |
| | | return |
| | | |
| | | def GetRecordID(self): return self.RecordID # 记录ID
|
| | |
| | | def GetGainGold(self): return self.GainGold # 获得仙玉数
|
| | | def GetGainGoldPrize(self): return self.GainGoldPrize # 赠送仙玉数
|
| | | def GetFirstGoldPrize(self): return self.FirstGoldPrize # 首次充值该档位赠送仙玉
|
| | | def GetGainItemList(self): return self.GainItemList # 获得物品列表[[物品ID,个数,是否绑定], ...] |
| | | def GetGainItemList(self): return self.GainItemList # 获得物品列表[[物品ID,个数,是否绑定], ...]
|
| | | def GetNotifyMark(self): return self.NotifyMark # 广播提示 |
| | | |
| | | # 等级奖励表 |
| | | class IPY_LVAward(): |
| | |
| | | def GetStar(self): return self.Star # 星数
|
| | | def GetLVLimit(self): return self.LVLimit # 等级范围
|
| | | def GetItemList(self): return self.ItemList # 奖励 |
| | | |
| | | # 神兵特效表 |
| | | class IPY_GodWeaponEffect(): |
| | | |
| | | def __init__(self): |
| | | self.GWType = 0
|
| | | self.Level = 0
|
| | | self.NotifyCode = "" |
| | | return |
| | | |
| | | def GetGWType(self): return self.GWType # 神兵类型
|
| | | def GetLevel(self): return self.Level # 神兵等级
|
| | | def GetNotifyCode(self): return self.NotifyCode # 广播 |
| | |
|
| | |
|
| | | def Log(msg, playerID=0, par=0):
|
| | |
| | | self.ipyMagicWeaponFBLen = len(self.ipyMagicWeaponFBCache)
|
| | | self.ipyIceLodeStarAwardCache = self.__LoadFileData("IceLodeStarAward", IPY_IceLodeStarAward)
|
| | | self.ipyIceLodeStarAwardLen = len(self.ipyIceLodeStarAwardCache)
|
| | | self.ipyGodWeaponEffectCache = self.__LoadFileData("GodWeaponEffect", IPY_GodWeaponEffect)
|
| | | self.ipyGodWeaponEffectLen = len(self.ipyGodWeaponEffectCache)
|
| | | Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict))
|
| | | Log("IPY_DataMgr InitOK!")
|
| | | return
|
| | |
| | | def GetMagicWeaponFBByIndex(self, index): return self.ipyMagicWeaponFBCache[index]
|
| | | def GetIceLodeStarAwardCount(self): return self.ipyIceLodeStarAwardLen
|
| | | def GetIceLodeStarAwardByIndex(self, index): return self.ipyIceLodeStarAwardCache[index]
|
| | | def GetGodWeaponEffectCount(self): return self.ipyGodWeaponEffectLen
|
| | | def GetGodWeaponEffectByIndex(self, index): return self.ipyGodWeaponEffectCache[index]
|
| | |
|
| | | IPYData = IPY_DataMgr()
|
| | | def IPY_Data(): return IPYData
|