From 43f21aabae8924f35c12c8485e690aeefe0089fb Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 16 Jun 2026 01:59:27 -0400 Subject: feat: overhauled ansi color, added prompt options --- internal/object/doc.go | 14 -------------- internal/object/item.go | 1 + internal/object/object.go | 1 + 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 internal/object/doc.go (limited to 'internal/object') 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"` -- cgit v1.2.3