diff options
| author | historia <[not public]> | 2026-06-20 04:44:44 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-20 04:44:44 -0400 |
| commit | 704627c3410a1dcab12e35cf67628bd014b4b5d8 (patch) | |
| tree | 4b298bfef86c43af970890c5450e8721aeac8a9d /internal/game/cmd_registry.go | |
| parent | dde563e6810124a73de5ef12e92774c540f9d62e (diff) | |
| download | thehouseoficarus-704627c3410a1dcab12e35cf67628bd014b4b5d8.tar.gz | |
feat: added verbs command (probably janky)
Diffstat (limited to 'internal/game/cmd_registry.go')
| -rw-r--r-- | internal/game/cmd_registry.go | 8 |
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 { |
