aboutsummaryrefslogtreecommitdiff
path: root/internal/validate/checks.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-16 15:00:46 -0400
committerhistoria <[not public]>2026-09-16 15:00:46 -0400
commita6cf03a6ae98e4fb675da25046d148e92bcf7206 (patch)
tree194499fe9e696be8c31cd915b7ad92678f9f95e0 /internal/validate/checks.go
parent9192d94dea6be5498ab080f3e2df5667af871d7a (diff)
downloadthehouseoficarus-a6cf03a6ae98e4fb675da25046d148e92bcf7206.tar.gz
chore: staticcheck and gofmt cleanups
Diffstat (limited to 'internal/validate/checks.go')
-rw-r--r--internal/validate/checks.go28
1 files changed, 14 insertions, 14 deletions
diff --git a/internal/validate/checks.go b/internal/validate/checks.go
index 344df3a..6994654 100644
--- a/internal/validate/checks.go
+++ b/internal/validate/checks.go
@@ -782,51 +782,51 @@ func validateDropTables(s Source) []Issue {
if d.ItemID != "" && d.Table != "" {
issues = append(issues, Issue{
- Level: "WARN",
- Type: "integrity",
+ Level: "WARN",
+ Type: "integrity",
Message: fmt.Sprintf("Drop table %q entry %d: both item_id and table set (only one is used per entry)", id, i+1),
})
}
if d.ItemID == "" && d.Table == "" {
issues = append(issues, Issue{
- Level: "WARN",
- Type: "integrity",
+ Level: "WARN",
+ Type: "integrity",
Message: fmt.Sprintf("Drop table %q entry %d: neither item_id nor table set (roll produces nothing)", id, i+1),
})
}
if d.Depletes {
issues = append(issues, Issue{
- Level: "WARN",
- Type: "integrity",
+ Level: "WARN",
+ Type: "integrity",
Message: fmt.Sprintf("Drop table %q entry %d: 'depletes' is ignored on shared drop table entries; set it on the gather entry that references this table instead", id, i+1),
})
}
if d.Level > 0 {
issues = append(issues, Issue{
- Level: "WARN",
- Type: "integrity",
+ Level: "WARN",
+ Type: "integrity",
Message: fmt.Sprintf("Drop table %q entry %d: 'level' is ignored on shared drop table entries; set it on the gather entry that references this table", id, i+1),
})
}
if d.XP > 0 {
issues = append(issues, Issue{
- Level: "WARN",
- Type: "integrity",
+ Level: "WARN",
+ Type: "integrity",
Message: fmt.Sprintf("Drop table %q entry %d: 'xp' is ignored on shared drop table entries; set it on the gather entry that references this table", id, i+1),
})
}
if d.Tool != "" {
issues = append(issues, Issue{
- Level: "WARN",
- Type: "integrity",
+ Level: "WARN",
+ Type: "integrity",
Message: fmt.Sprintf("Drop table %q entry %d: 'tool' is ignored on shared drop table entries; set it on the gather entry that references this table", id, i+1),
})
}
if d.SuccessMessage != "" {
issues = append(issues, Issue{
- Level: "WARN",
- Type: "integrity",
+ Level: "WARN",
+ Type: "integrity",
Message: fmt.Sprintf("Drop table %q entry %d: 'success_message' is ignored on shared drop table entries; set it on the gather entry that references this table", id, i+1),
})
}