From 7a15a5d70004b28bf2a710fa0f536af2446e5b17 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 5 Oct 2026 17:49:48 -0400 Subject: fix: production multi-step recipes, drop-weight validation, journal versioning --- internal/validate/checks.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'internal/validate') diff --git a/internal/validate/checks.go b/internal/validate/checks.go index 2030225..8fe8e72 100644 --- a/internal/validate/checks.go +++ b/internal/validate/checks.go @@ -547,6 +547,17 @@ func validateMobs(s Source) []Issue { id, d.Table), }) } + if d.Weight <= 0 { + label := d.ItemID + if label == "" { + label = "" + } + issues = append(issues, Issue{ + Level: "WARN", + Type: "semantic", + Message: fmt.Sprintf("Mob %q: loot %q has weight %d; it can never be selected", id, label, d.Weight), + }) + } } if def.Steal != nil { @@ -567,6 +578,17 @@ func validateMobs(s Source) []Issue { id, d.Table), }) } + if d.Weight <= 0 { + label := d.ItemID + if label == "" { + label = "" + } + issues = append(issues, Issue{ + Level: "WARN", + Type: "semantic", + Message: fmt.Sprintf("Mob %q: steal drop %q has weight %d; it can never be selected", id, label, d.Weight), + }) + } } } -- cgit v1.2.3