diff options
| author | historia <[not public]> | 2026-09-15 13:56:10 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-15 13:56:48 -0400 |
| commit | b3568f03e4103dd46db2ccc680fbab0a6454d604 (patch) | |
| tree | db3f6bb4f3d7c1deefbcd50de0f5022756d6b9ae /internal/game/cmd_trigger.go | |
| parent | f4ea40c4b3589104dfaced3481ba19c5735889ae (diff) | |
| download | thehouseoficarus-b3568f03e4103dd46db2ccc680fbab0a6454d604.tar.gz | |
fix: telnet buffer reuse, bank stack handling,
transport casino gate, and admin cache invalidation
Diffstat (limited to 'internal/game/cmd_trigger.go')
| -rw-r--r-- | internal/game/cmd_trigger.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/game/cmd_trigger.go b/internal/game/cmd_trigger.go index f74efec..404b924 100644 --- a/internal/game/cmd_trigger.go +++ b/internal/game/cmd_trigger.go @@ -44,6 +44,14 @@ func (g *Game) doTrigger(sess *net.Session, input string) { sess.WriteLine("You can't imagine transport would pick you up here") return } + // This also covers sequenced transport modules (e.g. transport_home), + // which never pass through triggerTransport. Transport would strand + // the player at a remote room while still seated at a table or + // machine; require them to stop playing first. + if g.inCasinoGame(p.Name) { + sess.WriteLine("You're playing a game. Type \"stop\" between rounds before transporting.") + return + } } if mod.ID == "transport_home" && p.HomeTransportCooldown > 0 { |
