summaryrefslogtreecommitdiff
path: root/toolcaps.go
blob: c414607f10e86a9810ef217f35b68d26dd76f88a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package mt

type ToolCaps struct {
	//mt:if _ = %s; false
	NonNil bool `json:"-"`
	//mt:end

	//mt:lenhdr 16

	//mt:ifde
	//mt:if r.N > 0 { %s.NonNil = true}; /**/
	//mt:if %s.NonNil

	//mt:const uint8(5)

	AttackCooldown float32 `json:"full_punch_interval"`
	MaxDropLvl     int16   `json:"max_drop_level"`

	//mt:len32
	GroupCaps []ToolGroupCaps `json:"groupcaps"`

	//mt:len32
	DmgGroups []Group `json:"damage_groups"`

	AttackUses uint16 `json:"punch_attack_uses"`

	//mt:end
	//mt:end

	//mt:end
}

type ToolGroupCaps struct {
	Name   string
	Uses   int16
	MaxLvl int16

	//mt:len32
	Times []DigTime
}

type DigTime struct {
	Rating int16
	Time   float32
}