diff options
| author | historia <[not public]> | 2026-10-04 17:44:27 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-04 17:44:27 -0400 |
| commit | 93dcb67ffee05ebf1de0c9a78a8b906eaf161007 (patch) | |
| tree | 88cdd3d732f11eee616698a9ca32f699d2b41d77 /internal/game/game.go | |
| parent | 3a39a020e4449bc4d6f728ef837cffb9f7bd0c56 (diff) | |
| download | thehouseoficarus-93dcb67ffee05ebf1de0c9a78a8b906eaf161007.tar.gz | |
feat: new casino game: cash hunt, fixed verb issue with pai gow
Diffstat (limited to 'internal/game/game.go')
| -rw-r--r-- | internal/game/game.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/game/game.go b/internal/game/game.go index 32e3c24..521c892 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -647,6 +647,16 @@ func (g *Game) handleGameCommand(sess *net.Session, input string) { } } + // A seated game may own inputs the shared registry does not know: bare + // square/card numbers and retry verbs (settle, set, house, autoset). Route + // them straight to executeCommand, whose per-game interceptors handle them, + // instead of rejecting them as unknown verbs. + if g.casinoOwnedInput(sess, cmd) { + g.executeCommand(sess, cmd, parts[1:], input) + g.writePrompt(sess) + return + } + if len(parts) == 1 { switch cmd { case "equip", "eq", "equipment", "wear", "wield": |
