From bab5dd653039d026eb3d4e46da7aafef7137fe7c Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 19 Sep 2026 03:52:04 -0400 Subject: fix: journal in-game room insert/remove, rewrite non-room room refs on rename/swap, seed admin grid from edited room, type action switches --- internal/game/cmd_registry.go | 5 +++-- 1 file changed, 3 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 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 { -- cgit v1.2.3