aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_stop.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-30 05:33:45 -0400
committerhistoria <[not public]>2026-09-30 05:33:45 -0400
commit0fcb03633e3008169173d76c8408f5410592b3eb (patch)
tree814797fb33a129b1c49f8ae309c6647027f5e528 /internal/game/cmd_stop.go
parent735428f0667f67c12fdf3caca872d7dc65e2ce26 (diff)
downloadthehouseoficarus-0fcb03633e3008169173d76c8408f5410592b3eb.tar.gz
feat: bank craps added to casino
Diffstat (limited to 'internal/game/cmd_stop.go')
-rw-r--r--internal/game/cmd_stop.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/game/cmd_stop.go b/internal/game/cmd_stop.go
index 2f2a7ee..7075d01 100644
--- a/internal/game/cmd_stop.go
+++ b/internal/game/cmd_stop.go
@@ -11,6 +11,10 @@ func (g *Game) executeStop(sess *net.Session, args []string, rawInput string) {
g.cancelRest(p.Name)
if _, playing := g.Casino.Participation(p.Name); playing {
if table, _ := g.Casino.Participation(p.Name); table != nil {
+ if events, stopped := table.StopAutoRoll(p.Name); stopped {
+ g.emitCasinoEvents(events)
+ return
+ }
// Normal leave refuses committed wagers. Only an explicit stop
// queues a departure; movement/quit retain their existing policy.
events := g.Casino.Leave(table.RoomID, table.Config.ID, p.Name)