From 430c81bd2056769e1326df9d1dff983afe7f33df Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 14 Jul 2026 03:05:42 -0400 Subject: fix(admin): tech tab loading yaml and css --- internal/validate/checks.go | 7 ------- internal/validate/validate.go | 6 ------ 2 files changed, 13 deletions(-) (limited to 'internal/validate') 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{ -- cgit v1.2.3