]> git.lizzy.rs Git - mt.git/commitdiff
Remove incomplete JSON (de)serialization for ToolCaps
authoranon5 <anon5clam@protonmail.com>
Wed, 23 Jun 2021 15:52:43 +0000 (15:52 +0000)
committeranon5 <anon5clam@protonmail.com>
Wed, 23 Jun 2021 15:52:43 +0000 (15:52 +0000)
serialize.go
toolcaps.go

index aef4017385c9f7ade77d6d1dd7b2326e0ca72257..60f4428a520d9f1c1d2823f1a3ce24388f25786b 100644 (file)
@@ -33897,34 +33897,34 @@ func (obj *ItemType) deserialize(r io.Reader) {
 func (obj *ToolCaps) serialize(w io.Writer) {
        if _ = (*(*(struct {
                //mt:if _ = %s; false
-               NonNil bool `json:"-"`
+               NonNil bool
 
-               AttackCooldown float32 `json:"full_punch_interval"`
-               MaxDropLvl     int16   `json:"max_drop_level"`
+               AttackCooldown float32
+               MaxDropLvl     int16
 
                //mt:len32
-               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+               GroupCaps []ToolGroupCaps
 
                //mt:len32
-               DmgGroups []Group `json:"damage_groups"`
+               DmgGroups []Group
 
-               AttackUses uint16 `json:"punch_attack_uses"`
+               AttackUses uint16
        }))(obj)); false {
                {
                        x := (*(*(struct {
                                //mt:if _ = %s; false
-                               NonNil bool `json:"-"`
+                               NonNil bool
 
-                               AttackCooldown float32 `json:"full_punch_interval"`
-                               MaxDropLvl     int16   `json:"max_drop_level"`
+                               AttackCooldown float32
+                               MaxDropLvl     int16
 
                                //mt:len32
-                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                               GroupCaps []ToolGroupCaps
 
                                //mt:len32
-                               DmgGroups []Group `json:"damage_groups"`
+                               DmgGroups []Group
 
-                               AttackUses uint16 `json:"punch_attack_uses"`
+                               AttackUses uint16
                        }))(obj)).NonNil
                        if x {
                                write8(w, 1)
@@ -33939,33 +33939,33 @@ func (obj *ToolCaps) serialize(w io.Writer) {
                /*
                   if r.N > 0 { (*(*(struct {
                        //mt:if _ = %s; false
-                       NonNil  bool    `json:"-"`
+                       NonNil  bool
 
-                       AttackCooldown  float32 `json:"full_punch_interval"`
-                       MaxDropLvl      int16   `json:"max_drop_level"`
+                       AttackCooldown  float32
+                       MaxDropLvl      int16
 
                        //mt:len32
-                       GroupCaps       []ToolGroupCaps `json:"groupcaps"`
+                       GroupCaps       []ToolGroupCaps
 
                        //mt:len32
-                       DmgGroups       []Group `json:"damage_groups"`
+                       DmgGroups       []Group
 
-                       AttackUses      uint16  `json:"punch_attack_uses"`
+                       AttackUses      uint16
                   }))(obj)).NonNil = true}; /**/{
                        if (*(*(struct {
                                //mt:if _ = %s; false
-                               NonNil bool `json:"-"`
+                               NonNil bool
 
-                               AttackCooldown float32 `json:"full_punch_interval"`
-                               MaxDropLvl     int16   `json:"max_drop_level"`
+                               AttackCooldown float32
+                               MaxDropLvl     int16
 
                                //mt:len32
-                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                               GroupCaps []ToolGroupCaps
 
                                //mt:len32
-                               DmgGroups []Group `json:"damage_groups"`
+                               DmgGroups []Group
 
-                               AttackUses uint16 `json:"punch_attack_uses"`
+                               AttackUses uint16
                        }))(obj)).NonNil {
                                {
                                        local376 := uint8(5)
@@ -33977,104 +33977,104 @@ func (obj *ToolCaps) serialize(w io.Writer) {
                                {
                                        x := (*(*(struct {
                                                //mt:if _ = %s; false
-                                               NonNil bool `json:"-"`
+                                               NonNil bool
 
-                                               AttackCooldown float32 `json:"full_punch_interval"`
-                                               MaxDropLvl     int16   `json:"max_drop_level"`
+                                               AttackCooldown float32
+                                               MaxDropLvl     int16
 
                                                //mt:len32
-                                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                               GroupCaps []ToolGroupCaps
 
                                                //mt:len32
-                                               DmgGroups []Group `json:"damage_groups"`
+                                               DmgGroups []Group
 
-                                               AttackUses uint16 `json:"punch_attack_uses"`
+                                               AttackUses uint16
                                        }))(obj)).AttackCooldown
                                        write32(w, math.Float32bits(x))
                                }
                                {
                                        x := (*(*(struct {
                                                //mt:if _ = %s; false
-                                               NonNil bool `json:"-"`
+                                               NonNil bool
 
-                                               AttackCooldown float32 `json:"full_punch_interval"`
-                                               MaxDropLvl     int16   `json:"max_drop_level"`
+                                               AttackCooldown float32
+                                               MaxDropLvl     int16
 
                                                //mt:len32
-                                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                               GroupCaps []ToolGroupCaps
 
                                                //mt:len32
-                                               DmgGroups []Group `json:"damage_groups"`
+                                               DmgGroups []Group
 
-                                               AttackUses uint16 `json:"punch_attack_uses"`
+                                               AttackUses uint16
                                        }))(obj)).MaxDropLvl
                                        write16(w, uint16(x))
                                }
                                if len(((*(*(struct {
                                        //mt:if _ = %s; false
-                                       NonNil bool `json:"-"`
+                                       NonNil bool
 
-                                       AttackCooldown float32 `json:"full_punch_interval"`
-                                       MaxDropLvl     int16   `json:"max_drop_level"`
+                                       AttackCooldown float32
+                                       MaxDropLvl     int16
 
                                        //mt:len32
-                                       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                       GroupCaps []ToolGroupCaps
 
                                        //mt:len32
-                                       DmgGroups []Group `json:"damage_groups"`
+                                       DmgGroups []Group
 
-                                       AttackUses uint16 `json:"punch_attack_uses"`
+                                       AttackUses uint16
                                }))(obj)).GroupCaps)) > math.MaxUint32 {
                                        chk(ErrTooLong)
                                }
                                {
                                        x := uint32(len(((*(*(struct {
                                                //mt:if _ = %s; false
-                                               NonNil bool `json:"-"`
+                                               NonNil bool
 
-                                               AttackCooldown float32 `json:"full_punch_interval"`
-                                               MaxDropLvl     int16   `json:"max_drop_level"`
+                                               AttackCooldown float32
+                                               MaxDropLvl     int16
 
                                                //mt:len32
-                                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                               GroupCaps []ToolGroupCaps
 
                                                //mt:len32
-                                               DmgGroups []Group `json:"damage_groups"`
+                                               DmgGroups []Group
 
-                                               AttackUses uint16 `json:"punch_attack_uses"`
+                                               AttackUses uint16
                                        }))(obj)).GroupCaps)))
                                        write32(w, uint32(x))
                                }
                                for local377 := range (*(*(struct {
                                        //mt:if _ = %s; false
-                                       NonNil bool `json:"-"`
+                                       NonNil bool
 
-                                       AttackCooldown float32 `json:"full_punch_interval"`
-                                       MaxDropLvl     int16   `json:"max_drop_level"`
+                                       AttackCooldown float32
+                                       MaxDropLvl     int16
 
                                        //mt:len32
-                                       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                       GroupCaps []ToolGroupCaps
 
                                        //mt:len32
-                                       DmgGroups []Group `json:"damage_groups"`
+                                       DmgGroups []Group
 
-                                       AttackUses uint16 `json:"punch_attack_uses"`
+                                       AttackUses uint16
                                }))(obj)).GroupCaps {
                                        if err := pcall(func() {
                                                (((*(*(struct {
                                                        //mt:if _ = %s; false
-                                                       NonNil bool `json:"-"`
+                                                       NonNil bool
 
-                                                       AttackCooldown float32 `json:"full_punch_interval"`
-                                                       MaxDropLvl     int16   `json:"max_drop_level"`
+                                                       AttackCooldown float32
+                                                       MaxDropLvl     int16
 
                                                        //mt:len32
-                                                       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                                       GroupCaps []ToolGroupCaps
 
                                                        //mt:len32
-                                                       DmgGroups []Group `json:"damage_groups"`
+                                                       DmgGroups []Group
 
-                                                       AttackUses uint16 `json:"punch_attack_uses"`
+                                                       AttackUses uint16
                                                }))(obj)).GroupCaps)[local377]).serialize(w)
                                        }); err != nil {
                                                if err == io.EOF {
@@ -34085,69 +34085,69 @@ func (obj *ToolCaps) serialize(w io.Writer) {
                                }
                                if len(((*(*(struct {
                                        //mt:if _ = %s; false
-                                       NonNil bool `json:"-"`
+                                       NonNil bool
 
-                                       AttackCooldown float32 `json:"full_punch_interval"`
-                                       MaxDropLvl     int16   `json:"max_drop_level"`
+                                       AttackCooldown float32
+                                       MaxDropLvl     int16
 
                                        //mt:len32
-                                       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                       GroupCaps []ToolGroupCaps
 
                                        //mt:len32
-                                       DmgGroups []Group `json:"damage_groups"`
+                                       DmgGroups []Group
 
-                                       AttackUses uint16 `json:"punch_attack_uses"`
+                                       AttackUses uint16
                                }))(obj)).DmgGroups)) > math.MaxUint32 {
                                        chk(ErrTooLong)
                                }
                                {
                                        x := uint32(len(((*(*(struct {
                                                //mt:if _ = %s; false
-                                               NonNil bool `json:"-"`
+                                               NonNil bool
 
-                                               AttackCooldown float32 `json:"full_punch_interval"`
-                                               MaxDropLvl     int16   `json:"max_drop_level"`
+                                               AttackCooldown float32
+                                               MaxDropLvl     int16
 
                                                //mt:len32
-                                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                               GroupCaps []ToolGroupCaps
 
                                                //mt:len32
-                                               DmgGroups []Group `json:"damage_groups"`
+                                               DmgGroups []Group
 
-                                               AttackUses uint16 `json:"punch_attack_uses"`
+                                               AttackUses uint16
                                        }))(obj)).DmgGroups)))
                                        write32(w, uint32(x))
                                }
                                for local378 := range (*(*(struct {
                                        //mt:if _ = %s; false
-                                       NonNil bool `json:"-"`
+                                       NonNil bool
 
-                                       AttackCooldown float32 `json:"full_punch_interval"`
-                                       MaxDropLvl     int16   `json:"max_drop_level"`
+                                       AttackCooldown float32
+                                       MaxDropLvl     int16
 
                                        //mt:len32
-                                       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                       GroupCaps []ToolGroupCaps
 
                                        //mt:len32
-                                       DmgGroups []Group `json:"damage_groups"`
+                                       DmgGroups []Group
 
-                                       AttackUses uint16 `json:"punch_attack_uses"`
+                                       AttackUses uint16
                                }))(obj)).DmgGroups {
                                        if err := pcall(func() {
                                                (((*(*(struct {
                                                        //mt:if _ = %s; false
-                                                       NonNil bool `json:"-"`
+                                                       NonNil bool
 
-                                                       AttackCooldown float32 `json:"full_punch_interval"`
-                                                       MaxDropLvl     int16   `json:"max_drop_level"`
+                                                       AttackCooldown float32
+                                                       MaxDropLvl     int16
 
                                                        //mt:len32
-                                                       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                                       GroupCaps []ToolGroupCaps
 
                                                        //mt:len32
-                                                       DmgGroups []Group `json:"damage_groups"`
+                                                       DmgGroups []Group
 
-                                                       AttackUses uint16 `json:"punch_attack_uses"`
+                                                       AttackUses uint16
                                                }))(obj)).DmgGroups)[local378]).serialize(w)
                                        }); err != nil {
                                                if err == io.EOF {
@@ -34159,18 +34159,18 @@ func (obj *ToolCaps) serialize(w io.Writer) {
                                {
                                        x := (*(*(struct {
                                                //mt:if _ = %s; false
-                                               NonNil bool `json:"-"`
+                                               NonNil bool
 
-                                               AttackCooldown float32 `json:"full_punch_interval"`
-                                               MaxDropLvl     int16   `json:"max_drop_level"`
+                                               AttackCooldown float32
+                                               MaxDropLvl     int16
 
                                                //mt:len32
-                                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                               GroupCaps []ToolGroupCaps
 
                                                //mt:len32
-                                               DmgGroups []Group `json:"damage_groups"`
+                                               DmgGroups []Group
 
-                                               AttackUses uint16 `json:"punch_attack_uses"`
+                                               AttackUses uint16
                                        }))(obj)).AttackUses
                                        write16(w, uint16(x))
                                }
@@ -34197,34 +34197,34 @@ func (obj *ToolCaps) serialize(w io.Writer) {
 func (obj *ToolCaps) deserialize(r io.Reader) {
        if _ = (*(*(struct {
                //mt:if _ = %s; false
-               NonNil bool `json:"-"`
+               NonNil bool
 
-               AttackCooldown float32 `json:"full_punch_interval"`
-               MaxDropLvl     int16   `json:"max_drop_level"`
+               AttackCooldown float32
+               MaxDropLvl     int16
 
                //mt:len32
-               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+               GroupCaps []ToolGroupCaps
 
                //mt:len32
-               DmgGroups []Group `json:"damage_groups"`
+               DmgGroups []Group
 
-               AttackUses uint16 `json:"punch_attack_uses"`
+               AttackUses uint16
        }))(obj)); false {
                {
                        p := &(*(*(struct {
                                //mt:if _ = %s; false
-                               NonNil bool `json:"-"`
+                               NonNil bool
 
-                               AttackCooldown float32 `json:"full_punch_interval"`
-                               MaxDropLvl     int16   `json:"max_drop_level"`
+                               AttackCooldown float32
+                               MaxDropLvl     int16
 
                                //mt:len32
-                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                               GroupCaps []ToolGroupCaps
 
                                //mt:len32
-                               DmgGroups []Group `json:"damage_groups"`
+                               DmgGroups []Group
 
-                               AttackUses uint16 `json:"punch_attack_uses"`
+                               AttackUses uint16
                        }))(obj)).NonNil
                        switch n := read8(r); n {
                        case 0:
@@ -34246,35 +34246,35 @@ func (obj *ToolCaps) deserialize(r io.Reader) {
                if r.N > 0 {
                        (*(*(struct {
                                //mt:if _ = %s; false
-                               NonNil bool `json:"-"`
+                               NonNil bool
 
-                               AttackCooldown float32 `json:"full_punch_interval"`
-                               MaxDropLvl     int16   `json:"max_drop_level"`
+                               AttackCooldown float32
+                               MaxDropLvl     int16
 
                                //mt:len32
-                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                               GroupCaps []ToolGroupCaps
 
                                //mt:len32
-                               DmgGroups []Group `json:"damage_groups"`
+                               DmgGroups []Group
 
-                               AttackUses uint16 `json:"punch_attack_uses"`
+                               AttackUses uint16
                        }))(obj)).NonNil = true
                } /**/
                {
                        if (*(*(struct {
                                //mt:if _ = %s; false
-                               NonNil bool `json:"-"`
+                               NonNil bool
 
-                               AttackCooldown float32 `json:"full_punch_interval"`
-                               MaxDropLvl     int16   `json:"max_drop_level"`
+                               AttackCooldown float32
+                               MaxDropLvl     int16
 
                                //mt:len32
-                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                               GroupCaps []ToolGroupCaps
 
                                //mt:len32
-                               DmgGroups []Group `json:"damage_groups"`
+                               DmgGroups []Group
 
-                               AttackUses uint16 `json:"punch_attack_uses"`
+                               AttackUses uint16
                        }))(obj)).NonNil {
                                {
                                        var local379 uint8
@@ -34289,36 +34289,36 @@ func (obj *ToolCaps) deserialize(r io.Reader) {
                                {
                                        p := &(*(*(struct {
                                                //mt:if _ = %s; false
-                                               NonNil bool `json:"-"`
+                                               NonNil bool
 
-                                               AttackCooldown float32 `json:"full_punch_interval"`
-                                               MaxDropLvl     int16   `json:"max_drop_level"`
+                                               AttackCooldown float32
+                                               MaxDropLvl     int16
 
                                                //mt:len32
-                                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                               GroupCaps []ToolGroupCaps
 
                                                //mt:len32
-                                               DmgGroups []Group `json:"damage_groups"`
+                                               DmgGroups []Group
 
-                                               AttackUses uint16 `json:"punch_attack_uses"`
+                                               AttackUses uint16
                                        }))(obj)).AttackCooldown
                                        *p = math.Float32frombits(read32(r))
                                }
                                {
                                        p := &(*(*(struct {
                                                //mt:if _ = %s; false
-                                               NonNil bool `json:"-"`
+                                               NonNil bool
 
-                                               AttackCooldown float32 `json:"full_punch_interval"`
-                                               MaxDropLvl     int16   `json:"max_drop_level"`
+                                               AttackCooldown float32
+                                               MaxDropLvl     int16
 
                                                //mt:len32
-                                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                               GroupCaps []ToolGroupCaps
 
                                                //mt:len32
-                                               DmgGroups []Group `json:"damage_groups"`
+                                               DmgGroups []Group
 
-                                               AttackUses uint16 `json:"punch_attack_uses"`
+                                               AttackUses uint16
                                        }))(obj)).MaxDropLvl
                                        *p = int16(read16(r))
                                }
@@ -34329,49 +34329,49 @@ func (obj *ToolCaps) deserialize(r io.Reader) {
                                }
                                ((*(*(struct {
                                        //mt:if _ = %s; false
-                                       NonNil bool `json:"-"`
+                                       NonNil bool
 
-                                       AttackCooldown float32 `json:"full_punch_interval"`
-                                       MaxDropLvl     int16   `json:"max_drop_level"`
+                                       AttackCooldown float32
+                                       MaxDropLvl     int16
 
                                        //mt:len32
-                                       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                       GroupCaps []ToolGroupCaps
 
                                        //mt:len32
-                                       DmgGroups []Group `json:"damage_groups"`
+                                       DmgGroups []Group
 
-                                       AttackUses uint16 `json:"punch_attack_uses"`
+                                       AttackUses uint16
                                }))(obj)).GroupCaps) = make([]ToolGroupCaps, local380)
                                for local381 := range (*(*(struct {
                                        //mt:if _ = %s; false
-                                       NonNil bool `json:"-"`
+                                       NonNil bool
 
-                                       AttackCooldown float32 `json:"full_punch_interval"`
-                                       MaxDropLvl     int16   `json:"max_drop_level"`
+                                       AttackCooldown float32
+                                       MaxDropLvl     int16
 
                                        //mt:len32
-                                       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                       GroupCaps []ToolGroupCaps
 
                                        //mt:len32
-                                       DmgGroups []Group `json:"damage_groups"`
+                                       DmgGroups []Group
 
-                                       AttackUses uint16 `json:"punch_attack_uses"`
+                                       AttackUses uint16
                                }))(obj)).GroupCaps {
                                        if err := pcall(func() {
                                                (((*(*(struct {
                                                        //mt:if _ = %s; false
-                                                       NonNil bool `json:"-"`
+                                                       NonNil bool
 
-                                                       AttackCooldown float32 `json:"full_punch_interval"`
-                                                       MaxDropLvl     int16   `json:"max_drop_level"`
+                                                       AttackCooldown float32
+                                                       MaxDropLvl     int16
 
                                                        //mt:len32
-                                                       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                                       GroupCaps []ToolGroupCaps
 
                                                        //mt:len32
-                                                       DmgGroups []Group `json:"damage_groups"`
+                                                       DmgGroups []Group
 
-                                                       AttackUses uint16 `json:"punch_attack_uses"`
+                                                       AttackUses uint16
                                                }))(obj)).GroupCaps)[local381]).deserialize(r)
                                        }); err != nil {
                                                if err == io.EOF {
@@ -34387,49 +34387,49 @@ func (obj *ToolCaps) deserialize(r io.Reader) {
                                }
                                ((*(*(struct {
                                        //mt:if _ = %s; false
-                                       NonNil bool `json:"-"`
+                                       NonNil bool
 
-                                       AttackCooldown float32 `json:"full_punch_interval"`
-                                       MaxDropLvl     int16   `json:"max_drop_level"`
+                                       AttackCooldown float32
+                                       MaxDropLvl     int16
 
                                        //mt:len32
-                                       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                       GroupCaps []ToolGroupCaps
 
                                        //mt:len32
-                                       DmgGroups []Group `json:"damage_groups"`
+                                       DmgGroups []Group
 
-                                       AttackUses uint16 `json:"punch_attack_uses"`
+                                       AttackUses uint16
                                }))(obj)).DmgGroups) = make([]Group, local382)
                                for local383 := range (*(*(struct {
                                        //mt:if _ = %s; false
-                                       NonNil bool `json:"-"`
+                                       NonNil bool
 
-                                       AttackCooldown float32 `json:"full_punch_interval"`
-                                       MaxDropLvl     int16   `json:"max_drop_level"`
+                                       AttackCooldown float32
+                                       MaxDropLvl     int16
 
                                        //mt:len32
-                                       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                       GroupCaps []ToolGroupCaps
 
                                        //mt:len32
-                                       DmgGroups []Group `json:"damage_groups"`
+                                       DmgGroups []Group
 
-                                       AttackUses uint16 `json:"punch_attack_uses"`
+                                       AttackUses uint16
                                }))(obj)).DmgGroups {
                                        if err := pcall(func() {
                                                (((*(*(struct {
                                                        //mt:if _ = %s; false
-                                                       NonNil bool `json:"-"`
+                                                       NonNil bool
 
-                                                       AttackCooldown float32 `json:"full_punch_interval"`
-                                                       MaxDropLvl     int16   `json:"max_drop_level"`
+                                                       AttackCooldown float32
+                                                       MaxDropLvl     int16
 
                                                        //mt:len32
-                                                       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                                       GroupCaps []ToolGroupCaps
 
                                                        //mt:len32
-                                                       DmgGroups []Group `json:"damage_groups"`
+                                                       DmgGroups []Group
 
-                                                       AttackUses uint16 `json:"punch_attack_uses"`
+                                                       AttackUses uint16
                                                }))(obj)).DmgGroups)[local383]).deserialize(r)
                                        }); err != nil {
                                                if err == io.EOF {
@@ -34441,18 +34441,18 @@ func (obj *ToolCaps) deserialize(r io.Reader) {
                                {
                                        p := &(*(*(struct {
                                                //mt:if _ = %s; false
-                                               NonNil bool `json:"-"`
+                                               NonNil bool
 
-                                               AttackCooldown float32 `json:"full_punch_interval"`
-                                               MaxDropLvl     int16   `json:"max_drop_level"`
+                                               AttackCooldown float32
+                                               MaxDropLvl     int16
 
                                                //mt:len32
-                                               GroupCaps []ToolGroupCaps `json:"groupcaps"`
+                                               GroupCaps []ToolGroupCaps
 
                                                //mt:len32
-                                               DmgGroups []Group `json:"damage_groups"`
+                                               DmgGroups []Group
 
-                                               AttackUses uint16 `json:"punch_attack_uses"`
+                                               AttackUses uint16
                                        }))(obj)).AttackUses
                                        *p = read16(r)
                                }
index c414607f10e86a9810ef217f35b68d26dd76f88a..7bf6c09afe9c100908cdc3f2261347dc330af8cb 100644 (file)
@@ -2,7 +2,7 @@ package mt
 
 type ToolCaps struct {
        //mt:if _ = %s; false
-       NonNil bool `json:"-"`
+       NonNil bool
        //mt:end
 
        //mt:lenhdr 16
@@ -11,18 +11,19 @@ type ToolCaps struct {
        //mt:if r.N > 0 { %s.NonNil = true}; /**/
        //mt:if %s.NonNil
 
+       // Version.
        //mt:const uint8(5)
 
-       AttackCooldown float32 `json:"full_punch_interval"`
-       MaxDropLvl     int16   `json:"max_drop_level"`
+       AttackCooldown float32
+       MaxDropLvl     int16
 
        //mt:len32
-       GroupCaps []ToolGroupCaps `json:"groupcaps"`
+       GroupCaps []ToolGroupCaps
 
        //mt:len32
-       DmgGroups []Group `json:"damage_groups"`
+       DmgGroups []Group
 
-       AttackUses uint16 `json:"punch_attack_uses"`
+       AttackUses uint16
 
        //mt:end
        //mt:end