From b3d4c616f59ad2519f3a0b77e3b47d6571cd2486 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 9 Jul 2026 19:29:17 -0400 Subject: feat: message actions are now sequences of messages with settable delays --- internal/validate/checks.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'internal/validate') diff --git a/internal/validate/checks.go b/internal/validate/checks.go index 47bbd1a..2e70323 100644 --- a/internal/validate/checks.go +++ b/internal/validate/checks.go @@ -1244,6 +1244,17 @@ func validateStepAction(prefix string, step *behavior.StepAction, itemIDs map[st return issues } + for i, msg := range step.Messages { + if msg.Delay < 0 { + issues = append(issues, Issue{ + Level: "WARN", + Type: "semantic", + Message: fmt.Sprintf("%s: messages[%d].delay is negative (%d)", + prefix, i, msg.Delay), + }) + } + } + // Validate the embedded NodeAction subset. if step.GiveItem != "" && !itemIDs[step.GiveItem] { issues = append(issues, Issue{ -- cgit v1.2.3