diff options
| author | historia <[not public]> | 2026-07-14 03:05:42 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-14 03:05:42 -0400 |
| commit | 430c81bd2056769e1326df9d1dff983afe7f33df (patch) | |
| tree | 83b7a7695c60519023b7634a3f552f66b34f7dbf /internal/validate | |
| parent | d72957499f1e25741b8f7a91746fbe132fa68161 (diff) | |
| download | thehouseoficarus-430c81bd2056769e1326df9d1dff983afe7f33df.tar.gz | |
fix(admin): tech tab loading yaml and css
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{ |
