aboutsummaryrefslogtreecommitdiff
path: root/internal/object
diff options
context:
space:
mode:
Diffstat (limited to 'internal/object')
-rw-r--r--internal/object/object.go14
1 files changed, 9 insertions, 5 deletions
diff --git a/internal/object/object.go b/internal/object/object.go
index 2dcc4bf..5b45a91 100644
--- a/internal/object/object.go
+++ b/internal/object/object.go
@@ -9,6 +9,14 @@ type UseInteraction struct {
Action *behavior.NodeAction `yaml:"action"`
}
+type ObjectSteal struct {
+ Table string `yaml:"table"`
+ Level int `yaml:"level"`
+ XP int `yaml:"xp"`
+ Speed float64 `yaml:"speed"`
+ GuardMob string `yaml:"guard_mob,omitempty"`
+}
+
type ObjectDef struct {
ID string `yaml:"id"`
Name string `yaml:"name"`
@@ -19,11 +27,7 @@ type ObjectDef struct {
RemovalItem string `yaml:"removal_item"`
Description behavior.DescList `yaml:"description"`
UseInteractions []UseInteraction `yaml:"use_interactions"`
- StealTable string `yaml:"steal_table"`
- StealLevel int `yaml:"steal_level"`
- StealXP int `yaml:"steal_xp"`
- StealSpeed float64 `yaml:"steal_speed"`
- GuardMob string `yaml:"guard_mob"`
+ Steal *ObjectSteal `yaml:"steal,omitempty"`
Gather *behavior.GatherConfig `yaml:"gather,omitempty"`
Talk *behavior.TalkConfig `yaml:"talk,omitempty"`