aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-19 03:15:59 -0400
committerhistoria <[not public]>2026-09-19 03:15:59 -0400
commit0e60567a7a0addb9421769ee7be7853bfa8788cb (patch)
tree7645112db0e4eae95b8a83c1e4f9aab38bede655 /internal/game/act.go
parentcc33072eced3d5460512c09c42ec4531c807d7af (diff)
downloadthehouseoficarus-0e60567a7a0addb9421769ee7be7853bfa8788cb.tar.gz
refactor: simplifcation, change how rooms are stored in player yaml, remove legacy code
Diffstat (limited to 'internal/game/act.go')
-rw-r--r--internal/game/act.go17
1 files changed, 6 insertions, 11 deletions
diff --git a/internal/game/act.go b/internal/game/act.go
index 1317df4..449b2da 100644
--- a/internal/game/act.go
+++ b/internal/game/act.go
@@ -14,18 +14,13 @@ import (
"thehouseoficarus/internal/world"
)
+// verbAliases maps a gather-style verb that has no commandRegistry entry to
+// the action it starts. Verbs that are registered directly (mine, chop, fish,
+// cut, talk/speak/ask, steal/thieve, hide) must not be duplicated here: a
+// registered command is looked up first, so an entry would be dead and its
+// removal untested. Only shear remains as a pure action alias.
var verbAliases = map[string]string{
- "mine": "gather",
- "chop": "gather",
- "fish": "gather",
- "cut": "gather",
- "shear": "gather",
- "talk": "talk",
- "speak": "talk",
- "ask": "talk",
- "steal": "steal",
- "thieve": "steal",
- "hide": "safespot",
+ "shear": "gather",
}
var verbSkill = map[string]string{