From a572273422ce72347de0697eccc0c57fefb1f85d Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期三, 27 三月 2019 14:25:49 +0800 Subject: [PATCH] 6244 【后端】【2.0】法宝调整 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 52 ---------------------------------------------------- 1 files changed, 0 insertions(+), 52 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py index 237882b..770691f 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py @@ -9899,58 +9899,6 @@ #------------------------------------------------------ -# A5 16 法宝状态记录 #tagCMMagicWeaponState - -class tagCMMagicWeaponState(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("MWID", c_int), #法宝ID - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xA5 - self.SubCmd = 0x16 - return - - def ReadData(self, stringData, _pos=0, _len=0): - self.Clear() - memmove(addressof(self), stringData[_pos:], self.GetLength()) - return _pos + self.GetLength() - - def Clear(self): - self.Cmd = 0xA5 - self.SubCmd = 0x16 - self.MWID = 0 - return - - def GetLength(self): - return sizeof(tagCMMagicWeaponState) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// A5 16 法宝状态记录 //tagCMMagicWeaponState: - Cmd:%s, - SubCmd:%s, - MWID:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.MWID - ) - return DumpString - - -m_NAtagCMMagicWeaponState=tagCMMagicWeaponState() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMMagicWeaponState.Cmd,m_NAtagCMMagicWeaponState.SubCmd))] = m_NAtagCMMagicWeaponState - - -#------------------------------------------------------ # A5 15 提升法宝等级 #tagCMMagicWeaponUp class tagCMMagicWeaponUp(Structure): -- Gitblit v1.8.0