From ec2e94e3463654a6288464a4c070b48ef9bf7368 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 17 Jun 2026 21:13:07 -0400 Subject: feat: smithing added, item/object interaction reworked. recipes and menus refactored. --- internal/object/object.go | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'internal/object/object.go') diff --git a/internal/object/object.go b/internal/object/object.go index 46e460e..fe55865 100644 --- a/internal/object/object.go +++ b/internal/object/object.go @@ -1,12 +1,22 @@ package object +import "thehouseoficarus/internal/action" + +type UseInteraction struct { + Item string `yaml:"item"` + Condition *action.Condition `yaml:"condition"` + Message string `yaml:"message"` + Action *action.NodeAction `yaml:"action"` +} + type ObjectDef struct { - ID string `yaml:"id"` - Name string `yaml:"name"` - Color string `yaml:"color"` - BehaviorID string `yaml:"behavior"` - Hidden bool `yaml:"hidden"` - InRoomDescription string `yaml:"inroom_description"` - RemovalItem string `yaml:"removal_item"` - Props map[string]any `yaml:"props"` + ID string `yaml:"id"` + Name string `yaml:"name"` + Color string `yaml:"color"` + BehaviorID string `yaml:"behavior"` + Hidden bool `yaml:"hidden"` + InRoomDescription string `yaml:"inroom_description"` + RemovalItem string `yaml:"removal_item"` + Description string `yaml:"description"` + UseInteractions []UseInteraction `yaml:"use_interactions"` } -- cgit v1.2.3