aboutsummaryrefslogtreecommitdiff
path: root/internal/world
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-05 16:42:01 -0400
committerhistoria <[not public]>2026-07-05 16:42:01 -0400
commit9b54188970c51070d86f4c87e909ea7836c86f07 (patch)
tree9dea17fee340bb92dee8bb4632001dbf219d2462 /internal/world
parent21c1997a3fd0f5ec5dcff1add45e4dfaf7a338ca (diff)
downloadthehouseoficarus-9b54188970c51070d86f4c87e909ea7836c86f07.tar.gz
fix: restructure steal yaml, update admin web gui
Diffstat (limited to 'internal/world')
-rw-r--r--internal/world/room.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/internal/world/room.go b/internal/world/room.go
index 9c2e52f..f66ce1d 100644
--- a/internal/world/room.go
+++ b/internal/world/room.go
@@ -210,11 +210,7 @@ func (ro RoomObject) MarshalYAML() (interface{}, error) {
RemovalItem string `yaml:"removal_item,omitempty"`
Description behavior.DescList `yaml:"description,omitempty"`
UseInteractions []object.UseInteraction `yaml:"use_interactions,omitempty"`
- StealTable string `yaml:"steal_table,omitempty"`
- StealLevel int `yaml:"steal_level,omitempty"`
- StealXP int `yaml:"steal_xp,omitempty"`
- StealSpeed float64 `yaml:"steal_speed,omitempty"`
- GuardMob string `yaml:"guard_mob,omitempty"`
+ Steal *object.ObjectSteal `yaml:"steal,omitempty"`
Gather *behavior.GatherConfig `yaml:"gather,omitempty"`
Talk *behavior.TalkConfig `yaml:"talk,omitempty"`
Use *behavior.UseConfig `yaml:"use,omitempty"`
@@ -231,11 +227,7 @@ func (ro RoomObject) MarshalYAML() (interface{}, error) {
RemovalItem: def.RemovalItem,
Description: def.Description,
UseInteractions: def.UseInteractions,
- StealTable: def.StealTable,
- StealLevel: def.StealLevel,
- StealXP: def.StealXP,
- StealSpeed: def.StealSpeed,
- GuardMob: def.GuardMob,
+ Steal: def.Steal,
Gather: def.Gather,
Talk: def.Talk,
Use: def.Use,