diff options
Diffstat (limited to 'internal/game/cmd_registry.go')
| -rw-r--r-- | internal/game/cmd_registry.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/game/cmd_registry.go b/internal/game/cmd_registry.go index fb72c99..ae4c895 100644 --- a/internal/game/cmd_registry.go +++ b/internal/game/cmd_registry.go @@ -4,6 +4,7 @@ import ( "fmt" "strings" + "thehouseoficarus/internal/behavior" "thehouseoficarus/internal/net" ) @@ -225,7 +226,7 @@ func (g *Game) executeCommand(sess *net.Session, cmd string, args []string, rawI if a, ok := verbAliases[cmd]; ok { g.cancelAction(p) switch a { - case "gather": + case behavior.TypeGather: if len(args) == 0 { target := g.defaultTarget(p.RoomID, cmd) if target == "" { @@ -236,7 +237,7 @@ func (g *Game) executeCommand(sess *net.Session, cmd string, args []string, rawI } else { g.startAction(sess, cmd, strings.Join(args, " ")) } - case "talk": + case behavior.TypeTalk: if len(args) == 0 { sess.WriteLine("Talk to whom?") } else { |
