aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-01 05:05:11 -0400
committerhistoria <[not public]>2026-10-01 05:05:11 -0400
commitd4eae333a8d8a96452bbf3617aa85b50466c11a7 (patch)
tree90d4cf075fe5467b35e5cc53ff3ee30fc4ee1feb /internal/game/game.go
parent299b5b67aa80ba2539d7a91c60943060b0426b45 (diff)
downloadthehouseoficarus-d4eae333a8d8a96452bbf3617aa85b50466c11a7.tar.gz
feat: concise table/machine names, casino command shortcuts, remove payout video poker command
Diffstat (limited to 'internal/game/game.go')
-rw-r--r--internal/game/game.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/game/game.go b/internal/game/game.go
index 6066179..f1855dc 100644
--- a/internal/game/game.go
+++ b/internal/game/game.go
@@ -615,6 +615,15 @@ func (g *Game) handleGameCommand(sess *net.Session, input string) {
}
cmd := parts[0]
+ // Seated casino players may shorten any casino verb to an unambiguous
+ // prefix (b 1000 -> bet 1000). Exact commands always win, so movement and
+ // the existing short aliases are never shadowed.
+ if canon, ok := g.casinoAbbreviation(sess, cmd); ok {
+ cmd = canon
+ parts[0] = canon
+ input = strings.Join(parts, " ")
+ }
+
if len(parts) == 1 {
switch cmd {
case "equip", "eq", "equipment", "wear", "wield":