blob: 9cd4c0f9d6ef1f3a9b07dabf4ccd355493af355e (
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
|
package action
type Action struct {
Type string
TargetID string
TargetName string
Step int
WaitLeft int
Data map[string]any
}
func (a *Action) Advance() bool {
if a.WaitLeft > 0 {
a.WaitLeft--
return false
}
return true
}
type DropEntry struct {
ItemID string `yaml:"item_id"`
Table string `yaml:"table"`
Weight int `yaml:"weight"`
Quantity int `yaml:"quantity"`
Depletes bool `yaml:"depletes"`
Message string `yaml:"message"`
}
type DropTableDef struct {
ID string `yaml:"id"`
Drops []DropEntry `yaml:"drops"`
}
|