| | |
| | | ("dict", "BatAttrDict", 0),
|
| | | ("list", "FetterIDList", 0),
|
| | | ("BYTE", "RecruitBySelf", 0),
|
| | | ("BYTE", "Specialty", 0),
|
| | | ),
|
| | |
|
| | | "HeroTalent":(
|
| | |
| | | def GetHPInheritPer(self): return self.attrTuple[11] # 生命继承 WORD
|
| | | def GetBatAttrDict(self): return self.attrTuple[12] # 其他战斗属性字典 {"属性ID":值, ...} dict
|
| | | def GetFetterIDList(self): return self.attrTuple[13] # 羁绊ID列表 list
|
| | | def GetRecruitBySelf(self): return self.attrTuple[14] # 招募需要本体 BYTE |
| | | def GetRecruitBySelf(self): return self.attrTuple[14] # 招募需要本体 BYTE
|
| | | def GetSpecialty(self): return self.attrTuple[15] # 武将特长 BYTE |
| | | |
| | | # 武将星级天赋表 |
| | | class IPY_HeroTalent(): |
| | |
| | |
|
| | | def __StrToList(self, strValue):
|
| | | setList = []
|
| | | if ("[" in strValue and "]" in strValue) or ("(" in strValue and ")" in strValue):
|
| | | if (strValue.startswith("[") and strValue.endswith("]")) or (strValue.startswith("(") and strValue.endswith(")")):
|
| | | setList = eval(strValue)
|
| | | elif strValue in ["0", "-", ""]:
|
| | | pass
|
| | |
| | | for value in strValue.split(ChConfig.Def_Str_Montant):
|
| | | if value.isdigit():
|
| | | value = int(value)
|
| | | elif (value.startswith("[") and value.endswith("]")) or (value.startswith("(") and value.endswith(")")):
|
| | | value = eval(value)
|
| | | setList.append(value)
|
| | | if setList:
|
| | | setList = tuple(setList)
|