From 9666676766bf21364f4fc4d0d1d336e72f2a91b4 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 6 Oct 2026 12:57:23 -0400 Subject: refactor: split casino.go, dedup helpers, remove audit docs --- internal/game/render_help.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/game/render_help.go') diff --git a/internal/game/render_help.go b/internal/game/render_help.go index 9e8b45a..bfc40f7 100644 --- a/internal/game/render_help.go +++ b/internal/game/render_help.go @@ -47,7 +47,7 @@ var commandList = []cmdEntry{ {"drink", "Free", "Drink a potion"}, {"drop", "Active", "Drop items to the ground"}, {"eat", "Free", "Eat food to restore hitpoints"}, - {"equipment / eq", "Instant", "Show equipped items"}, + {"equipment / eq", "Free", "Show equipped items"}, {"exits", "Instant", "List available exits"}, {"fish", "Active", "Fish at fishing spots (Fishing)"}, {"fletch", "Free", "Fletch logs into bows (Fletching)"}, @@ -81,7 +81,7 @@ var commandList = []cmdEntry{ {"prompt", "Instant", "Set custom command prompt"}, {"pull / push", "Active", "Interact with objects"}, {"queued", "Instant", "Show pending tick actions"}, - {"quit", "Active", "Rest and disconnect (\"quit now\" forfeits a mid-game bet)"}, + {"quit", "Instant", "Rest and disconnect (\"quit now\" forfeits a mid-game bet)"}, {"rake", "Active", "Rake a farming patch"}, {"remove / unwear / unwield", "Free", "Unequip items"}, {"say", "Instant", "Chat with players in your room"}, @@ -115,7 +115,7 @@ var commandList = []cmdEntry{ func LoadHelp(dataDir string) ([]HelpDef, error) { dir := filepath.Join(dataDir, "help") var helps []HelpDef - behavior.WalkYAMLDir(dir, func(path, id string, data []byte) error { + err := behavior.WalkYAMLDir(dir, func(path, id string, data []byte) error { h := parseHelpDef(data) if h == nil { return nil @@ -123,7 +123,7 @@ func LoadHelp(dataDir string) ([]HelpDef, error) { helps = append(helps, *h) return nil }) - return helps, nil + return helps, err } // helpRaw mirrors the canonical help schema and is also used by data -- cgit v1.2.3