aboutsummaryrefslogtreecommitdiff
path: root/internal/game/render_help.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-06 12:57:23 -0400
committerhistoria <[not public]>2026-10-06 12:57:23 -0400
commit9666676766bf21364f4fc4d0d1d336e72f2a91b4 (patch)
tree0cade34091d7602790dc38cd44053f0b74bbadf2 /internal/game/render_help.go
parent4bc1daaf259e0c19c5fe4a12ec8bc7f6e5a735c1 (diff)
downloadthehouseoficarus-9666676766bf21364f4fc4d0d1d336e72f2a91b4.tar.gz
refactor: split casino.go, dedup helpers, remove audit docs
Diffstat (limited to 'internal/game/render_help.go')
-rw-r--r--internal/game/render_help.go8
1 files changed, 4 insertions, 4 deletions
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