aboutsummaryrefslogtreecommitdiff
path: root/internal/object
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-16 01:59:27 -0400
committerhistoria <[not public]>2026-06-16 01:59:27 -0400
commit43f21aabae8924f35c12c8485e690aeefe0089fb (patch)
treeb5fbadb89df3cf4ffec86503bb8e2d7e52b27454 /internal/object
parent4cc1ddcd185509080b4b3e15d1646567edd51c9d (diff)
downloadthehouseoficarus-43f21aabae8924f35c12c8485e690aeefe0089fb.tar.gz
feat: overhauled ansi color, added prompt options
Diffstat (limited to 'internal/object')
-rw-r--r--internal/object/doc.go14
-rw-r--r--internal/object/item.go1
-rw-r--r--internal/object/object.go1
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"`