aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_registry.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-20 04:44:44 -0400
committerhistoria <[not public]>2026-06-20 04:44:44 -0400
commit704627c3410a1dcab12e35cf67628bd014b4b5d8 (patch)
tree4b298bfef86c43af970890c5450e8721aeac8a9d /internal/game/cmd_registry.go
parentdde563e6810124a73de5ef12e92774c540f9d62e (diff)
downloadthehouseoficarus-704627c3410a1dcab12e35cf67628bd014b4b5d8.tar.gz
feat: added verbs command (probably janky)
Diffstat (limited to 'internal/game/cmd_registry.go')
-rw-r--r--internal/game/cmd_registry.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/game/cmd_registry.go b/internal/game/cmd_registry.go
index db1ec81..5073b02 100644
--- a/internal/game/cmd_registry.go
+++ b/internal/game/cmd_registry.go
@@ -117,7 +117,11 @@ var commandRegistry = map[string]commandDef{
"remove": {(*Game).executeRemove, ClassFree},
"unwear": {(*Game).executeRemove, ClassFree},
"unwield": {(*Game).executeRemove, ClassFree},
- "aps": {(*Game).executeAps, ClassActive},
+ "aps": {(*Game).executeAps, ClassActive},
+ "verbs": {(*Game).executeVerbs, ClassInstant},
+ "what": {(*Game).executeVerbs, ClassInstant},
+ "syntax": {(*Game).executeVerbs, ClassInstant},
+ "commands": {(*Game).executeVerbs, ClassInstant},
}
func classifyCommand(cmd string) CommandClass {
@@ -173,7 +177,7 @@ func (g *Game) executeCommand(sess *net.Session, cmd string, args []string, rawI
}
func (g *Game) executeGather(sess *net.Session, args []string, rawInput string) {
- verb := strings.TrimSpace(rawInput)
+ verb := strings.Fields(rawInput)[0]
p := sess.Player
g.cancelAction(p)
if len(args) == 0 {