diff options
| author | historia <[not public]> | 2026-07-05 16:42:01 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-05 16:42:01 -0400 |
| commit | 9b54188970c51070d86f4c87e909ea7836c86f07 (patch) | |
| tree | 9dea17fee340bb92dee8bb4632001dbf219d2462 /internal/object | |
| parent | 21c1997a3fd0f5ec5dcff1add45e4dfaf7a338ca (diff) | |
| download | thehouseoficarus-9b54188970c51070d86f4c87e909ea7836c86f07.tar.gz | |
fix: restructure steal yaml, update admin web gui
Diffstat (limited to 'internal/object')
| -rw-r--r-- | internal/object/object.go | 14 |
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"` |
