aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_room.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-09 19:29:17 -0400
committerhistoria <[not public]>2026-07-09 19:29:17 -0400
commitb3d4c616f59ad2519f3a0b77e3b47d6571cd2486 (patch)
tree6f1f6a314e0550da68264a79381fc269db803312 /internal/game/act_room.go
parent18c7af94b30c2767b6633d050324c1db34074ce2 (diff)
downloadthehouseoficarus-b3d4c616f59ad2519f3a0b77e3b47d6571cd2486.tar.gz
feat: message actions are now sequences of messages with settable delays
Diffstat (limited to 'internal/game/act_room.go')
-rw-r--r--internal/game/act_room.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/game/act_room.go b/internal/game/act_room.go
index 2b08bfa..a6acc21 100644
--- a/internal/game/act_room.go
+++ b/internal/game/act_room.go
@@ -52,8 +52,10 @@ func (g *Game) runEnterSteps(sess *net.Session, roomID int) {
if !sequenced {
// Pure message-only steps — print synchronously, no side effects.
for _, step := range steps {
- if step.Message != "" {
- sess.WriteLine(step.Message)
+ for _, msg := range step.Messages {
+ if msg.Message != "" {
+ sess.WriteLine(msg.Message)
+ }
}
}
return