From 9b54188970c51070d86f4c87e909ea7836c86f07 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sun, 5 Jul 2026 16:42:01 -0400 Subject: fix: restructure steal yaml, update admin web gui --- internal/object/object.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'internal/object/object.go') 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"` -- cgit v1.2.3