diff options
Diffstat (limited to 'internal/validate')
| -rw-r--r-- | internal/validate/checks.go | 7 | ||||
| -rw-r--r-- | internal/validate/validate.go | 6 |
2 files changed, 0 insertions, 13 deletions
diff --git a/internal/validate/checks.go b/internal/validate/checks.go index 7ac6fa1..527b558 100644 --- a/internal/validate/checks.go +++ b/internal/validate/checks.go @@ -1068,13 +1068,6 @@ func validateTechs(s Source) []Issue { Message: fmt.Sprintf("Tech %q: has no name", def.ID), }) } - if def.Category != "" && !knownTechCategories[def.Category] { - issues = append(issues, Issue{ - Level: "WARN", - Type: "reference", - Message: fmt.Sprintf("Tech %q: unknown category %q", def.ID, def.Category), - }) - } if def.DrainRate < 0 { issues = append(issues, Issue{ Level: "ERROR", diff --git a/internal/validate/validate.go b/internal/validate/validate.go index 234651e..735c9ef 100644 --- a/internal/validate/validate.go +++ b/internal/validate/validate.go @@ -36,7 +36,6 @@ type CourseView struct { type TechView struct { ID string Name string - Category string DrainRate float64 } @@ -151,11 +150,6 @@ func LogIssues(issues []Issue) { } } -var knownTechCategories = map[string]bool{ - "accuracy": true, "strength": true, "defense": true, "ranged": true, - "science": true, "protection": true, "utility": true, "combo": true, -} - // reservedTechIDs are tech IDs whose semantics are coupled to code logic and // must exist in YAML (damage protection mapping + death retribution). var reservedTechIDs = map[string]bool{ |
