From 704627c3410a1dcab12e35cf67628bd014b4b5d8 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 20 Jun 2026 04:44:44 -0400 Subject: feat: added verbs command (probably janky) --- internal/game/cmd_registry.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'internal/game/cmd_registry.go') 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 { -- cgit v1.2.3