From 2b34924e06c0c36d77d9ccec4c4f10f1ebd16e84 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 16 九月 2025 19:03:17 +0800 Subject: [PATCH] 129 【战斗】战斗系统-服务端(NPC表加特长字段;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py | 4 +++- PySysDB/PySysDBPY.h | 1 + ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/PySysDB/PySysDBPY.h b/PySysDB/PySysDBPY.h index c86794f..0b8b31b 100644 --- a/PySysDB/PySysDBPY.h +++ b/PySysDB/PySysDBPY.h @@ -57,6 +57,7 @@ DWORD SuckHPPer; //吸血比率 DWORD SuckHPPerDef; //抗吸血比率 dict SpecAttrInfo; //特殊属性信息 {"属性ID":值, ...} + BYTE Specialty; // 特长 }; //NPC成长表 diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py index 2a01244..80b2184 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py @@ -758,7 +758,7 @@ if not npcDataEx: continue if not heroIpyData: - specialty = 0 + specialty = npcDataEx.GetSpecialty() atkDistType = npcDataEx.GetAtkDistType() objName = npcDataEx.GetNPCName() country = npcDataEx.GetCountry() diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py index d1f1419..830f953 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py @@ -84,6 +84,7 @@ ("DWORD", "SuckHPPer", 0), ("DWORD", "SuckHPPerDef", 0), ("dict", "SpecAttrInfo", 0), + ("BYTE", "Specialty", 0), ), "NPCStronger":( @@ -2643,7 +2644,8 @@ 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(): -- Gitblit v1.8.0