diff options
Diffstat (limited to 'internal/object')
| -rw-r--r-- | internal/object/doc.go | 14 | ||||
| -rw-r--r-- | internal/object/item.go | 1 | ||||
| -rw-r--r-- | internal/object/object.go | 1 |
3 files changed, 2 insertions, 14 deletions
diff --git a/internal/object/doc.go b/internal/object/doc.go deleted file mode 100644 index 89f6db9..0000000 --- a/internal/object/doc.go +++ /dev/null @@ -1,14 +0,0 @@ -// Package object defines item and object definitions with their YAML-backed -// loading stores. -// -// ItemDef covers all game items: equipment stats, weapon types, tool -// properties (tool_type, tool_speed for gathering/firemaking), firemaking -// fields (burn_ticks, fire_level, fire_xp), and stackable/quality metadata. -// -// ObjectDef covers interactive world objects: their behavior reference, -// hidden flag for unlisted-but-interactable objects, in-room description -// overrides, removal items, and arbitrary props. -// -// ItemStore and ObjectStore load definitions from YAML files in the -// data/items/ and data/objects/ directories, caching results in memory. -package object diff --git a/internal/object/item.go b/internal/object/item.go index f4e2f8b..ecdb1e9 100644 --- a/internal/object/item.go +++ b/internal/object/item.go @@ -33,6 +33,7 @@ const ( type ItemDef struct { ID string `yaml:"id"` Name string `yaml:"name"` + Color string `yaml:"color"` Aliases []string `yaml:"aliases"` Description string `yaml:"description"` Value int `yaml:"value"` diff --git a/internal/object/object.go b/internal/object/object.go index 2810e07..46e460e 100644 --- a/internal/object/object.go +++ b/internal/object/object.go @@ -3,6 +3,7 @@ package object 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"` |
