aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
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":