aboutsummaryrefslogtreecommitdiff
path: root/internal/validate/checks.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-30 19:27:37 -0400
committerhistoria <[not public]>2026-06-30 19:27:37 -0400
commitfee376102192dc6f24297a7b11324636ace3a07d (patch)
tree6c777cc71208b429eebdbdc5864b353d4af34a09 /internal/validate/checks.go
parent98bdef072c843fdd8ccdf85a9b54ab9d32d34187 (diff)
downloadthehouseoficarus-fee376102192dc6f24297a7b11324636ace3a07d.tar.gz
feat: admin gui object CRUD is much nicer
Diffstat (limited to 'internal/validate/checks.go')
-rw-r--r--internal/validate/checks.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/validate/checks.go b/internal/validate/checks.go
index d835a53..50fd9a5 100644
--- a/internal/validate/checks.go
+++ b/internal/validate/checks.go
@@ -995,6 +995,14 @@ func validateTechs(s Source) []Issue {
func validateGather(prefix string, cfg *behavior.GatherConfig, itemIDs map[string]bool, dropIDs map[string]bool) []Issue {
var issues []Issue
+ if len(cfg.Tools) == 0 {
+ issues = append(issues, Issue{
+ Level: "ERROR",
+ Type: "config",
+ Message: fmt.Sprintf("%s: gather must have at least one tool", prefix),
+ })
+ }
+
if cfg.Bait != "" && !itemIDs[cfg.Bait] {
issues = append(issues, Issue{
Level: "ERROR",