hch
2018-12-26 b6ba2976a06e9d288c740e8ab83186b7feb5dcea
860312 buff封包补齐
1个文件已修改
14 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChNetSendPack.py 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChNetSendPack.py
@@ -436,7 +436,7 @@
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("ObjType", c_ubyte),
                  ("ObjType", c_ubyte),    #buff的受效果者
                  ("ObjID", c_int),    
                  ("BuffType", c_ubyte),    #Buff类型  TBuffType
                  ("SkillID", c_ushort),    
@@ -445,6 +445,8 @@
                  ("Value1", c_int),    
                  ("Value2", c_int),    
                  ("Layer", c_ubyte),    #层数,不需要默认0
                  ("OwnerID", c_int),    # buff来源者
                  ("OwnerType", c_ubyte),
                  ]
    def __init__(self):
@@ -470,6 +472,8 @@
        self.Value1 = 0
        self.Value2 = 0
        self.Layer = 0
        self.OwnerID = 0
        self.OwnerType = 0
        return
    def GetLength(self):
@@ -490,7 +494,9 @@
                                Value:%d,
                                Value1:%d,
                                Value2:%d,
                                Layer:%d
                                Layer:%d,
                                OwnerID:%d,
                                OwnerType:%d
                                '''\
                                %(
                                self.Cmd,
@@ -503,7 +509,9 @@
                                self.Value,
                                self.Value1,
                                self.Value2,
                                self.Layer
                                self.Layer,
                                self.OwnerID,
                                self.OwnerType
                                )
        return DumpString