aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_trigger.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_trigger.go')
-rw-r--r--internal/game/cmd_trigger.go8
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 {