129 【战斗】战斗系统-服务端(NPC表加特长字段;)
| | |
| | | DWORD SuckHPPer; //吸血比率
|
| | | DWORD SuckHPPerDef; //抗吸血比率
|
| | | dict SpecAttrInfo; //特殊属性信息 {"属性ID":值, ...}
|
| | | BYTE Specialty; // 特长
|
| | | };
|
| | |
|
| | | //NPC成长表
|
| | |
| | | if not npcDataEx:
|
| | | continue
|
| | | if not heroIpyData:
|
| | | specialty = 0
|
| | | specialty = npcDataEx.GetSpecialty()
|
| | | atkDistType = npcDataEx.GetAtkDistType()
|
| | | objName = npcDataEx.GetNPCName()
|
| | | country = npcDataEx.GetCountry()
|
| | |
| | | ("DWORD", "SuckHPPer", 0),
|
| | | ("DWORD", "SuckHPPerDef", 0),
|
| | | ("dict", "SpecAttrInfo", 0),
|
| | | ("BYTE", "Specialty", 0),
|
| | | ),
|
| | |
|
| | | "NPCStronger":(
|
| | |
| | | def GetParryRateDef(self): return self.attrTuple[23] # 抗格挡概率 DWORD
|
| | | def GetSuckHPPer(self): return self.attrTuple[24] # 吸血比率 DWORD
|
| | | def GetSuckHPPerDef(self): return self.attrTuple[25] # 抗吸血比率 DWORD
|
| | | def GetSpecAttrInfo(self): return self.attrTuple[26] # 特殊属性信息 {"属性ID":值, ...} dict |
| | | def GetSpecAttrInfo(self): return self.attrTuple[26] # 特殊属性信息 {"属性ID":值, ...} dict
|
| | | def GetSpecialty(self): return self.attrTuple[27] # 特长 BYTE |
| | | |
| | | # NPC成长表 |
| | | class IPY_NPCStronger(): |